/* ==========================================================
   Petrodiamed Utilaje — Reparații cardane și planetare
   Paletă: oțel / grafit rece + portocaliu tăios
   ========================================================== */

:root {
  /* culori de bază */
  --graphite-950: #0c1014;
  --graphite-900: #12171d;
  --graphite-850: #171d24;
  --graphite-800: #1c232b;
  --graphite-700: #28313b;
  --steel-500: #6b7a89;
  --steel-400: #8796a4;
  --steel-300: #aab6c2;
  --steel-200: #cfd7df;
  --steel-100: #e5eaef;
  --paper: #f2f4f6;
  --white: #ffffff;

  --accent: #ff5a1f;
  --accent-hover: #ff7340;
  --accent-ink: #c2410c;   /* portocaliu pentru text pe fundal deschis (AA) */

  /* roluri semantice */
  --bg-dark: var(--graphite-900);
  --bg-light: var(--paper);
  --on-dark: #eef2f5;
  --on-dark-muted: #a3afbb;
  --ink: #10151b;
  --ink-muted: #48535f;
  --line-dark: rgba(170, 182, 194, 0.14);
  --line-light: #d6dde4;
  --on-accent: #10151b;

  /* tipografie */
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* spațiere / formă */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 6px;
  --radius-lg: 10px;

  /* mișcare */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 260ms;

  /* z-index */
  --z-header: 50;
  --z-bar: 60;
  --z-nav: 70;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* spațiul pentru scrollbar rămâne rezervat, ca pagina să nu sară când apare/dispare (ex. după intro) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- etichete secțiuni ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--dark { color: var(--accent); }

.section-title { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; text-transform: uppercase; margin-top: 14px; }
.section-lead { margin-top: 18px; max-width: 62ch; color: var(--ink-muted); font-size: 1.125rem; }
.on-dark .section-lead { color: var(--on-dark-muted); }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: rgba(238, 242, 245, 0.32); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.btn--dark { background: var(--graphite-900); color: var(--on-dark); }
.btn--dark:hover { background: var(--graphite-700); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--on-dark);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease, backdrop-filter var(--dur) ease;
}
.site-header.is-scrolled {
  background: rgba(18, 23, 29, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { height: 44px; width: auto; }
.brand-logo { height: 40px; width: auto; }
.footer-logo { height: 48px; width: auto; }
/* până la logo-ul final: wordmark text */
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand-text span { color: var(--accent); }
.brand-text small { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.28em; color: var(--on-dark-muted); margin-top: 4px; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark); opacity: 0.85;
  transition: opacity var(--dur-fast) ease, color var(--dur-fast) ease;
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; color: var(--accent); }
.header-cta { min-height: 46px; font-size: 1.1rem; padding: 0 18px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--on-dark);
  align-items: center; justify-content: center; border-radius: var(--radius);
}
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast); }
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }
.nav-open .nav-toggle .bar { background: transparent; }
.nav-open .nav-toggle .bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% 40%, rgba(255, 90, 31, 0.10), transparent 60%),
    radial-gradient(900px 700px at 10% 100%, rgba(107, 122, 137, 0.18), transparent 60%),
    var(--graphite-950);
  color: var(--on-dark);
  padding: calc(76px + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 104px);
  min-height: 100svh;
  display: flex; align-items: center;
}
.hero::before { /* grilă tip schiță tehnică */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(3rem, 7.6vw, 6.4rem); font-weight: 700; text-transform: uppercase; margin-top: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { margin-top: 24px; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--steel-200); font-size: 0.98rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--accent); }

.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero-caption {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; text-align: center;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-400);
}
.gear-ring { fill: var(--graphite-800); stroke: var(--steel-400); stroke-width: 1.4; fill-rule: evenodd; }
.gear-planet { fill: url(#gPlanet); stroke: var(--steel-200); stroke-width: 1.2; }
.gear-sun { fill: url(#gSun); stroke: #ffb08f; stroke-width: 1.2; }
.gear-hub { fill: var(--graphite-950); stroke: var(--steel-300); stroke-width: 1.2; }
.gear-carrier { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0.8; }
.blueprint { fill: none; stroke: var(--steel-500); stroke-width: 0.8; opacity: 0.55; }
.blueprint-dash { stroke-dasharray: 3 5; }
.blueprint-text { font-family: var(--font-mono); font-size: 7.5px; fill: var(--steel-400); letter-spacing: 0.08em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(238, 242, 245, 0.35); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================
   BANDĂ ÎNCREDERE
   ========================================================== */
.trust { background: var(--graphite-850); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; padding: 28px 24px; border-left: 1px solid var(--line-dark); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .icon { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.trust-item h3 { font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.trust-item p { color: var(--on-dark-muted); font-size: 0.96rem; margin-top: 4px; line-height: 1.5; }

/* ==========================================================
   CARDAN DESFĂCUT
   ========================================================== */
.explode { background: var(--graphite-900); color: var(--on-dark); position: relative; overflow: hidden; padding: var(--section-y) 0; }
.explode-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 56px; }
.explode-head .section-lead { max-width: 58ch; margin-top: 0; }
.shaft-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.shaft-hint { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-400); }
#shaft-toggle .icon { transition: transform var(--dur) var(--ease-out); }
#shaft-toggle[aria-pressed="true"] .icon { transform: rotate(-45deg); }

.shaft-stage { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.shaft-svg { width: 100%; height: auto; overflow: visible; }
.shaft-svg .badge { cursor: pointer; opacity: 0; }
.shaft-svg .badge circle { fill: var(--accent); }
.shaft-svg .badge text { font-family: var(--font-head); font-weight: 700; font-size: 17px; fill: var(--on-accent); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.shaft-svg .badge line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.shaft-svg .stamp { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; fill: #1e242a; opacity: 0.45; pointer-events: none; }
.shaft-svg .part { cursor: pointer; outline: none; transition: filter var(--dur) ease, opacity var(--dur) ease; }
.shaft-svg .part:hover { filter: brightness(1.18); }
.shaft-svg .part:focus-visible { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 4px #fff); }
.shaft-svg .part.is-selected { filter: drop-shadow(0 0 3px #ff5a1f) drop-shadow(0 0 14px rgba(255, 90, 31, 0.6)); }
.shaft-svg.has-selection .part:not(.is-selected) { opacity: 0.38; }
.shaft-svg.has-selection .badge:not(.is-selected) { opacity: 0.4 !important; }
.shaft-shadow { fill: rgba(0, 0, 0, 0.35); filter: blur(10px); }

/* lista de piese + panoul cu detalii */
.parts-ui { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.6fr; gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
.part-list { display: grid; gap: 4px; align-content: start; }
.part-list button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 8px 16px;
  background: rgba(28, 35, 43, 0.7); color: var(--on-dark); border: 0; border-left: 3px solid transparent; border-radius: 4px; text-align: left;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.part-list button:hover { background: var(--graphite-700); }
.part-list .num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--graphite-700); font-size: 1rem; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.part-list button[aria-pressed="true"] { background: var(--graphite-700); border-color: var(--accent); }
.part-list button[aria-pressed="true"] .num { background: var(--accent); color: var(--on-accent); }

.part-panel { background: var(--graphite-800); border: 1px solid var(--graphite-700); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); min-height: 100%; }
.part-info h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; text-transform: uppercase; }
.part-info > p { margin-top: 10px; color: var(--on-dark-muted); max-width: 62ch; }
.part-info h4 { margin: 20px 0 8px; font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.part-info ul { display: grid; gap: 6px; }
.part-info li { position: relative; padding-left: 20px; }
.part-info li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 2px; background: var(--accent); }
.part-info h4 + p { margin-top: 0; color: var(--on-dark); }
.part-num { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-400); }
.part-info:not([hidden]) { animation: panel-in 320ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   SERVICII
   ========================================================== */
.services { padding: var(--section-y) 0; background: var(--bg-light); }
.services-main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); overflow: hidden;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.service-card:hover { border-color: var(--steel-300); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(16, 21, 27, 0.35); }
.service-card--main { background: var(--graphite-900); color: var(--on-dark); border-color: var(--graphite-700); }
.service-card--main:hover { border-color: var(--accent); }
.service-card--main::after { /* colț portocaliu */
  content: ""; position: absolute; right: 0; top: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 54px 54px 0; border-color: transparent var(--accent) transparent transparent;
}
.service-tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.service-card h3 { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; text-transform: uppercase; margin-top: 12px; }
.service-card > p { margin-top: 14px; color: var(--on-dark-muted); }
.check-list { margin-top: 22px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 4px; }
.service-link {
  margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  min-height: 44px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.service-link .icon { transition: transform var(--dur) var(--ease-out); }
.service-link:hover .icon { transform: translateX(4px); }

.services-sub-title { margin-top: clamp(56px, 7vw, 80px); font-size: 1.7rem; font-weight: 700; text-transform: uppercase; }
.services-sub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.service-card--sub { padding: 26px; }
.service-card--sub .service-icon {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--steel-100); color: var(--graphite-800);
}
.service-card--sub .service-icon .icon { width: 26px; height: 26px; }
.service-card--sub h3 { font-size: 1.55rem; margin-top: 18px; }

/* ilustrațiile tehnice din cardurile de servicii */
.service-art {
  margin: -26px -26px 4px; aspect-ratio: 320 / 170; overflow: hidden;
  background:
    radial-gradient(260px 140px at 50% 55%, rgba(255, 90, 31, 0.10), transparent 70%),
    linear-gradient(rgba(170, 182, 194, 0.07) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(170, 182, 194, 0.07) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--graphite-900);
  border-bottom: 3px solid var(--accent);
}
.service-art svg { width: 100%; height: 100%; display: block; transition: transform 500ms var(--ease-out); }
/* fotografiile decupate: plutesc ușor peste grila tehnică, cu lumină de contur */
.service-art--photo { display: grid; place-items: center; position: relative; }
.service-art--photo::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 70%; height: 60%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.28), transparent); filter: blur(8px);
}
.service-art--photo::after { /* umbra de sub obiect */
  content: ""; position: absolute; left: 50%; bottom: 9%; width: 46%; height: 8%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
}
.service-art--photo img {
  position: absolute; z-index: 1; left: 0; right: 0; top: 7%; height: 86%; width: 86%; margin: 0 auto; object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.25)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  animation: art-float 5s ease-in-out infinite; transition: transform 500ms var(--ease-out);
}
.service-card--sub:hover .service-art--photo img { animation-play-state: paused; transform: scale(1.06) rotate(-2deg); }
@keyframes art-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-5px); } }
.service-card--sub:hover .service-art svg { transform: scale(1.04); }
.service-art .spin { transform-box: fill-box; transform-origin: center; animation: art-spin 7s linear infinite; }
.service-art .spin--slow { animation-duration: 4s; animation-direction: reverse; }
.service-art .spin--rev { animation-direction: reverse; animation-duration: 4.2s; }
.service-art .flow { stroke-dasharray: 8 12; animation: art-flow 1.4s linear infinite; }
.service-art .flow--ground { stroke-dasharray: 14 10; animation-duration: 0.9s; }
.art-dim { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; fill: var(--steel-400); }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-flow { to { stroke-dashoffset: -40; } }
.service-card--sub p { margin-top: 10px; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.6; }

/* ==========================================================
   CUM LUCRĂM
   ========================================================== */
.process { padding: var(--section-y) 0; background: var(--graphite-950); color: var(--on-dark); position: relative; overflow: hidden; }
.steps-wrap { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-wrap::before { /* linia care leagă pașii */
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--graphite-700);
}
.steps .progress-line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step { position: relative; padding-right: 28px; }
.step-num {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--graphite-900); border: 2px solid var(--graphite-700);
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--accent);
}
.step h3 { margin-top: 24px; font-size: 1.6rem; font-weight: 600; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--on-dark-muted); }
.step a { color: var(--on-dark); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ==========================================================
   DESPRE
   ========================================================== */
.about { padding: var(--section-y) 0; background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text p { margin-top: 18px; font-size: 1.125rem; color: var(--ink-muted); max-width: 60ch; }
.about-text p strong { color: var(--ink); }
.promise-card { background: var(--graphite-900); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 34px); border-top: 4px solid var(--accent); }
.promise-card h3 { font-size: 1.6rem; text-transform: uppercase; }
.promise-card ul { margin-top: 20px; display: grid; gap: 18px; }
.promise-card li { display: flex; gap: 14px; align-items: flex-start; }
.promise-card .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.promise-card strong { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.promise-card span { color: var(--on-dark-muted); font-size: 0.98rem; }
.promise-card a { color: var(--on-dark); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { padding: var(--section-y) 0; background: var(--white); border-top: 1px solid var(--line-light); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 0; cursor: pointer;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--steel-100); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform var(--dur) var(--ease-out); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--accent); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-answer { padding: 0 0 22px; color: var(--ink-muted); max-width: 64ch; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { padding: var(--section-y) 0; background: var(--graphite-900); color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(32px, 4vw, 48px); align-items: stretch; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; text-decoration: none;
  background: var(--graphite-800); border: 1px solid var(--graphite-700); border-radius: var(--radius-lg);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
a.contact-card:hover, button.contact-card:hover { border-color: var(--accent); background: var(--graphite-850); }
button.contact-card { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.contact-card.is-revealed strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.footer-reveal, .inline-reveal {
  padding: 0; background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(163, 175, 187, 0.4); text-underline-offset: 3px;
}
.footer-reveal { display: inline-flex; align-items: center; min-height: 32px; }
.footer-reveal:hover, .inline-reveal:hover { color: var(--accent); }
.inline-reveal { color: var(--accent-ink); font-weight: 600; }
.contact-card .contact-icon { width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center; background: var(--graphite-700); color: var(--accent); flex: none; }
.contact-card--hot .contact-icon { background: var(--accent); color: var(--on-accent); }
.contact-card small { display: block; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-card strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.contact-card span.sub { display: block; color: var(--on-dark-muted); font-size: 0.95rem; }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--graphite-700); min-height: 360px; background: var(--graphite-800); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(1.05); }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 90, 31, 0.12), transparent 60%), repeating-linear-gradient(0deg, transparent 0 39px, var(--line-dark) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line-dark) 39px 40px), var(--graphite-800); }
.map-consent .icon { width: 40px; height: 40px; color: var(--accent); }
.map-consent .map-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; text-transform: uppercase; color: var(--on-dark); }
.map-consent p { max-width: 42ch; color: var(--on-dark-muted); font-size: 0.95rem; }
.map-consent p a { color: var(--on-dark); }
.map-external { color: var(--on-dark-muted); font-size: 0.92rem; min-height: 36px; display: inline-flex; align-items: center; }
.map-external:hover { color: var(--accent); }
.map-wrap.has-map .map-consent { display: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--graphite-950); color: var(--on-dark-muted); padding: 56px 0 32px; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1.2fr; gap: 32px; }
.footer-company { margin: 12px 0 0; display: grid; gap: 8px; }
.footer-company dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); }
.footer-company dd { margin: 1px 0 0; color: var(--on-dark); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.legal-links a, .legal-links button { display: inline-flex; align-items: center; min-height: 36px; padding: 0; background: none; border: 0; color: var(--on-dark-muted); font: inherit; text-decoration: underline; text-decoration-color: rgba(163, 175, 187, 0.35); text-underline-offset: 3px; cursor: pointer; }
.legal-links a:hover, .legal-links button:hover { color: var(--accent); }
.anpc { display: flex; flex-wrap: wrap; gap: 10px; }
.anpc-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 6px; border-radius: 6px;
  background: var(--white); color: #0d3b6e; text-decoration: none; font-size: 0.74rem; font-weight: 600; line-height: 1.25;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.anpc-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.anpc-logo { width: auto; height: 40px; flex: none; margin-left: 4px; }
.anpc-text strong { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.1; color: #0d3b6e; }
.footer-bottom { margin-top: 24px; }
.credit { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-dark); text-align: center; font-size: 0.92rem; letter-spacing: 0.04em; color: var(--on-dark-muted); }
.credit strong { color: var(--on-dark); font-weight: 600; }
/* pe desktop, spațiu sub footer ca butoanele plutitoare să nu acopere ultimul rând */
@media (min-width: 901px) { .site-footer { padding-bottom: 150px; } }
.site-footer .brand-text { color: var(--on-dark); }
.footer-about { margin-top: 14px; max-width: 42ch; }
.footer-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark); }
.footer-links { margin-top: 12px; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem; }

/* ==========================================================
   BARĂ CONTACT MOBIL
   ========================================================== */
.icon--fill { fill: currentColor; stroke: none; }

/* ==========================================================
   CONTACT RAPID (WhatsApp + afișează numărul)
   ========================================================== */
.contact-float {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-bar);
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  transition: transform 300ms var(--ease-out);
}
.cookie-open .contact-float { transform: translateY(-160px); }
.cf-phone, .cf-wa {
  display: inline-flex; align-items: center; text-decoration: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  touch-action: manipulation;
}
.cf-phone:hover, .cf-wa:hover { transform: translateY(-2px); }
.cf-phone { gap: 10px; min-height: 48px; padding: 0 20px 0 16px; background: var(--graphite-950); color: var(--on-dark); border: 1px solid var(--graphite-700); }
.cf-phone .icon { width: 20px; height: 20px; color: var(--accent); }
.cf-phone:hover { border-color: var(--accent); }
.cf-phone.is-revealed { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums; }
.cf-phone.is-revealed .icon { color: var(--on-accent); }
.cf-wa { gap: 12px; padding: 6px 22px 6px 6px; background: var(--graphite-950); color: #fff; border: 1px solid rgba(37, 211, 102, 0.55); }
.cf-wa:hover { border-color: #25d366; }
.cf-wa-dot { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; animation: wa-pulse 2.4s ease-out infinite; }
.cf-wa-dot .icon { width: 28px; height: 28px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ==========================================================
   INTRO 3D
   ========================================================== */
.intro { display: none; position: fixed; inset: 0; z-index: 200; background: #07090b; overflow: hidden; cursor: pointer; }
.intro-on .intro, .intro-leaving .intro { display: block; }
html.intro-on, html.intro-on body { overflow: hidden; }
.intro-on .cookie-banner { opacity: 0 !important; pointer-events: none; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.intro-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.75) 100%); }

/* HUD tehnic */
.intro-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-mono); color: var(--steel-300); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hud-corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 90, 31, 0.8); opacity: 0; }
.hud-corner.tl { top: 22px; left: 22px; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.tr { top: 22px; right: 22px; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bl { bottom: 22px; left: 22px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.br { bottom: 22px; right: 22px; border-bottom-width: 2px; border-right-width: 2px; }
.hud-tl { position: absolute; top: 30px; left: 60px; max-width: calc(100% - 240px); display: flex; align-items: center; gap: 10px; opacity: 0; white-space: nowrap; overflow: hidden; }
.hud-tag.is-left { flex-direction: row-reverse; }
.hud-tag.is-left .hud-tag-dot { margin: -5px -5px 0 0; }
.hud-tag.is-left .hud-tag-line { transform-origin: right; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: hud-blink 1s steps(2) infinite; }
@keyframes hud-blink { 50% { opacity: 0.2; } }
.hud-tr { position: absolute; top: 30px; right: 60px; opacity: 0; font-variant-numeric: tabular-nums; }
.hud-parts { position: absolute; left: 60px; bottom: 60px; display: grid; gap: 7px; }
.hud-parts li { display: flex; align-items: center; gap: 10px; opacity: 0; transition: color 200ms ease; }
.hud-parts li::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--steel-500); transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.hud-parts li.is-done { opacity: 1 !important; color: #fff; }
.hud-parts li.is-done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(255, 90, 31, 0.8); }
.hud-rpm { position: absolute; right: 60px; bottom: 56px; display: grid; justify-items: end; gap: 2px; opacity: 0; color: var(--steel-300); }
.hud-rpm b { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: 0.02em; line-height: 1; color: inherit; font-variant-numeric: tabular-nums; }
.hud-tag { position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; will-change: transform; }
.hud-tag-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); }
.hud-tag-line { width: 90px; height: 1px; background: var(--accent); transform-origin: left; margin-top: -5px; }
.hud-tag-text { margin-top: -5px; padding: 6px 10px; background: rgba(7, 9, 11, 0.7); border: 1px solid rgba(255, 90, 31, 0.6); color: #fff; white-space: nowrap; }

/* numele firmei */
.intro-brand { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; opacity: 0; pointer-events: none; padding: 0 16px; }
.intro-word { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 12vw, 9rem); line-height: 1; letter-spacing: 0.02em; color: #fff; white-space: nowrap; }
.intro-word .chm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.04em; }
.intro-word .ch { display: inline-block; will-change: transform; }
.intro-symbol { display: block; width: clamp(84px, 14vw, 132px); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 0 28px rgba(255, 90, 31, 0.4)); }
.intro-utilaje { margin-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 3vw, 2rem); letter-spacing: 0.9em; padding-left: 0.9em; text-transform: uppercase; color: var(--accent); }
.intro-tag { margin-top: 18px; font-family: var(--font-mono); font-size: clamp(0.72rem, 1.6vw, 0.95rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-200); }

.intro-flash { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--accent); box-shadow: 0 0 18px 2px rgba(255, 90, 31, 0.9); transform: scaleX(0); pointer-events: none; }
.intro-skip {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); min-height: 44px; padding: 0 18px;
  background: rgba(7, 9, 11, 0.5); border: 1px solid rgba(238, 242, 245, 0.25); border-radius: var(--radius); color: var(--on-dark-muted);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; z-index: 2;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.intro-skip:hover { border-color: var(--accent); color: var(--on-dark); }
@media (max-width: 760px) {
  .intro-hud { font-size: 0.62rem; }
  .hud-tl { left: 50px; top: 27px; max-width: calc(100% - 190px); } .hud-tr { right: 50px; top: 27px; }
  .hud-sub { display: none; }
  .hud-parts { display: none; }
  .hud-rpm { right: 50px; bottom: 80px; }
  .hud-tag-line { width: 50px; }
}
/* ==========================================================
   COOKIE-URI
   ========================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; margin-inline: auto; max-width: 980px;
  background: var(--graphite-950); color: var(--on-dark); border: 1px solid var(--graphite-700); border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(20px); transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-inner { display: flex; gap: 20px 28px; align-items: center; padding: 20px 24px; }
.cookie-text { flex: 1; font-size: 0.95rem; color: var(--on-dark-muted); line-height: 1.55; }
.cookie-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; text-transform: uppercase; color: var(--on-dark); margin-bottom: 4px; }
.cookie-text a { color: var(--on-dark); }
.cookie-options { margin-top: 12px; display: grid; gap: 8px; }
.cookie-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cookie-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cookie-opt strong { color: var(--on-dark); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; flex: none; max-width: 360px; }
.cookie-actions .btn { min-height: 46px; font-size: 1.05rem; padding: 0 18px; }
.cookie-link { min-height: 46px; padding: 0 8px; background: none; border: 0; color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.cookie-link:hover { color: var(--accent); }

/* ==========================================================
   PAGINI LEGALE
   ========================================================== */
.legal-page .site-header { position: sticky; background: var(--graphite-950); }
.legal { padding: clamp(48px, 7vw, 88px) 0 var(--section-y); background: var(--bg-light); }
.legal-body { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; margin-top: 14px; }
.legal .updated { margin-top: 12px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-muted); }
.legal h2 { font-size: 1.7rem; text-transform: uppercase; margin: 40px 0 12px; }
.legal h3 { font-size: 1.3rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #2b343e; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0; padding-left: 22px; list-style: disc; display: grid; gap: 6px; }
.legal a { color: var(--accent-ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line-light); vertical-align: top; }
.legal th { background: var(--steel-100); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }
/* pagina „Reparații cardane Buzău” */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-muted); }
.breadcrumbs a { color: var(--accent-ink); }
.legal-lead { margin-top: 20px; font-size: 1.15rem; line-height: 1.7; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-cta .btn.is-revealed { font-variant-numeric: tabular-nums; }
.legal ol.landing-steps { margin: 12px 0; padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.legal ol.landing-steps li { position: relative; padding: 14px 16px 14px 58px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); counter-increment: step; }
.legal ol.landing-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700;
}
.service-more { margin-top: 24px; align-self: flex-start; color: var(--on-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.service-more:hover { color: var(--accent); }
.service-more + .service-link { padding-top: 12px; }
.legal-box { margin-top: 20px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line-light); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.legal-box p { margin: 0; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .services-sub { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 76px 0 0 0; z-index: var(--z-nav);
    background: var(--graphite-950); padding: 24px var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .main-nav { overflow-y: auto; overscroll-behavior: contain; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
  /* blur-ul și transformarea header-ului ar face meniul fix să se raporteze la header (se strângea la 48px după scroll) */
  .nav-open .site-header { background: var(--graphite-950); backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .nav-open .contact-float { visibility: hidden; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { font-size: 1.8rem; min-height: 64px; border-bottom: 1px solid var(--line-dark); padding: 0; }

  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; justify-self: center; order: -1; margin-bottom: -8px; }
  .hero-caption { display: none; }
  .scroll-cue { display: none; }

  .explode-head { grid-template-columns: 1fr; }
  .parts-ui { grid-template-columns: 1fr; }
  .services-main, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps-wrap::before, .steps-wrap .progress-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .cookie-banner { bottom: 76px; }

  /* pe telefon contactul rapid devine bară fixă jos */
  .contact-float {
    left: 0; right: 0; bottom: 0; flex-direction: row; align-items: stretch; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(12, 16, 20, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line-dark);
  }
  .cookie-open .contact-float { transform: none; }
  .cf-phone, .cf-wa { flex: 1 1 0; min-width: 0; justify-content: center; min-height: 52px; border-radius: var(--radius); box-shadow: none; font-size: clamp(0.8rem, 3.6vw, 1rem); letter-spacing: 0.02em; white-space: nowrap; }
  .cf-phone { padding: 0 8px; gap: 7px; }
  .cf-phone .icon { width: 18px; height: 18px; }
  .cf-wa { padding: 4px 8px 4px 4px; gap: 7px; }
  .cf-wa-dot { width: 36px; height: 36px; }
  .cf-wa-dot .icon { width: 21px; height: 21px; }
  .cf-phone:hover, .cf-wa:hover { transform: none; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(3) { border-left: 0; padding: 20px 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--line-dark); }
  /* pe telefon cardanul stă vertical, ca să fie mai mare */
  .shaft-stage { height: 600px; margin-top: 8px; }
  .shaft-svg { position: absolute; left: 50%; top: 50%; width: 600px; max-width: none; transform: translate(-50%, -50%) rotate(90deg); }
  .shaft-svg .badge text { transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
  .shaft-shadow { display: none; }
  .hero-visual { max-width: 250px; }
  .hero h1 { margin-top: 12px; }
  .part-list { grid-template-columns: 1fr 1fr; }
  .part-list button { font-size: 1.02rem; padding: 8px 10px; gap: 10px; }
  .services-sub { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; padding: 18px; }
  .cookie-actions { max-width: none; justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 140px; }
  .contact-card strong { font-size: 1.35rem; }
}

/* ==========================================================
   ANIMAȚII
   ========================================================== */
/* header care se ascunde la scroll în jos */
.site-header { transition: background-color var(--dur) ease, box-shadow var(--dur) ease, transform 360ms var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:has(:focus-visible) { transform: none; }

/* bară de progres a paginii */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* titluri împărțite pe cuvinte (doar cu animațiile pornite) */
.section-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0 0.14em; margin: -0.12em 0 -0.14em; }
.section-title .wi { display: inline-block; will-change: transform; }

/* linia de lângă etichete */
.eyebrow::before { transform-origin: left; transition: transform 700ms var(--ease-out) 120ms; }
.anim .eyebrow:not(.is-in)::before { transform: scaleX(0); }
.anim .eyebrow:not(.is-in) { clip-path: inset(0 100% 0 0); }
.anim .eyebrow { transition: clip-path 900ms var(--ease-out); clip-path: inset(0 0 0 0); }

/* pașii: cercul se aprinde */
.step-num { transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, transform 400ms var(--ease-out); }
.step-num.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.08); }

/* butonul „Desface cardanul” pulsează până e apăsat prima dată */
.btn.is-hinting { animation: hint-pulse 2s ease-out infinite; }
@keyframes hint-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(255, 90, 31, 0); }
}

/* carduri secundare: iconița se rotește și se aprinde la hover */
.service-card--sub .service-icon { transition: background-color var(--dur) ease, color var(--dur) ease, transform 500ms var(--ease-out); }
.service-card--sub:hover .service-icon { background: var(--accent); color: var(--on-accent); transform: rotate(-8deg) scale(1.06); }
.service-card--main h3 { transition: color var(--dur) ease; }
.service-card--main:hover h3 { color: var(--accent); }
.check-list .icon { transition: transform var(--dur) var(--ease-out); }
.check-list li:hover .icon { transform: scale(1.25); }

/* telefonul din contact „sună” din când în când */
.contact-card--hot .contact-icon .icon { animation: ring 4.5s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes ring {
  0%, 84%, 100% { transform: rotate(0); }
  86% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 90% { transform: rotate(-10deg); }
  92% { transform: rotate(8deg); } 94% { transform: rotate(-4deg); } 96% { transform: rotate(0); }
}
.contact-card .contact-icon { transition: transform var(--dur) var(--ease-out); }
a.contact-card:hover .contact-icon { transform: scale(1.08); }

/* răspunsurile din FAQ se deschid lin */
.faq-item[open] .faq-answer { animation: panel-in 380ms var(--ease-out); }

/* link-urile din meniu: linie care crește sub text */
.main-nav a { position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
@media (max-width: 900px) { .main-nav a::after { display: none; } }

/* ==========================================================
   MIȘCARE REDUSĂ
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}