/* ==========================================================================
   ProElectric Craiova
   Culoarea de accent nu e aleasă arbitrar: e nuanța medie (217°) a ecranelor
   de navigație din fotografiile reale ale atelierului — vezi README.
   ========================================================================== */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ───────────────────────────── Tokens ───────────────────────────── */
:root {
  --bg:        #0a0c10;
  --bg-2:      #0e1117;
  --surface:   #141922;
  --surface-2: #1b212c;
  --line:      #252c38;
  --line-soft: #1d2430;

  --text:      #eef1f6;
  --text-2:    #b8c1cf;
  --muted:     #8d97a7;

  --accent:      #5796f9;
  --accent-soft: #8fb9ff;
  --accent-deep: #1d4ed8;
  --accent-wash: rgba(87, 150, 249, .12);

  --wa:      #25d366;
  --wa-deep: #128c3e;

  /* Curbele standard CSS sunt prea slabe; acestea au intenție. */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --wrap: 1180px;
  --pad:  clamp(1.15rem, 4vw, 2.5rem);

  --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 60px -24px rgba(0, 0, 0, .8);
}

/* ───────────────────────────── Bază ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;  /* flash-ul gri la atingere = „website" */
  -webkit-text-size-adjust: 100%;            /* fără inflație de font în landscape */
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter var', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.14; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.9rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: 1.0625rem; letter-spacing: -.012em; }
p  { margin: 0 0 1rem; }

a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

/* Orice `display` din CSS învinge atributul `hidden`. Fără regula asta,
   placeholder-ul hărții (display:grid) rămâne vizibil peste hartă. */
[hidden] { display: none !important; }

/* Controalele nu sunt text de citit; conținutul este. */
button, a, [role="button"] {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

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

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

.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;
}

.skip {
  position: fixed; top: .6rem; left: .6rem; z-index: 200;
  transform: translateY(-160%);
  background: var(--accent); color: #05070b; font-weight: 650;
  padding: .7rem 1.1rem; border-radius: var(--r-sm); text-decoration: none;
  transition: transform 180ms var(--ease-out);
}
.skip:focus { transform: translateY(0); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ───────────────────────────── Butoane ───────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.3rem;
  min-height: 48px;                      /* țintă de atingere confortabilă */
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit; font-weight: 600; font-size: .96rem;
  letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  /* Doar transform și opacity rulează pe GPU. */
  transition: transform 140ms var(--ease-out), background-color 160ms ease,
              border-color 160ms ease, opacity 160ms ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }    /* feedback la apăsare, pe orice input */

.btn-solid { --btn-bg: var(--accent); --btn-fg: #04080f; --btn-bd: transparent; font-weight: 680; }
.btn-ghost { --btn-bg: rgba(255,255,255,.03); --btn-bd: var(--line); }
.btn-quiet { --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn-wa    { --btn-bg: var(--wa); --btn-fg: #04220f; --btn-bd: transparent; font-weight: 680; }

@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: #6ba4fa; }
  .btn-ghost:hover { background: rgba(255,255,255,.07); border-color: #313a49; }
  .btn-quiet:hover { color: var(--text); background: rgba(255,255,255,.05); }
  .btn-wa:hover    { background: #32e074; }
}

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--text-2); text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) { .linklike:hover { color: var(--text); } }

/* ───────────────────────────── Antet ───────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10, 12, 16, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head[data-stuck] { border-bottom-color: var(--line-soft); background: rgba(10, 12, 16, .9); }

.head-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text); margin-right: auto;
  /* Țintă de atingere confortabilă fără a schimba aspectul vizual. */
  min-height: 44px; padding-block: .25rem;
}
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.028em; }
.brand-text span { font-size: .685rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
.nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: var(--r-sm);
  color: var(--text-2); text-decoration: none; font-size: .935rem; font-weight: 520;
  transition: color 160ms ease, background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); background: rgba(255,255,255,.05); } }

.head-call { display: none; padding: .62rem 1.05rem; min-height: 42px; font-size: .9rem; }

.burger {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 20px; height: 1.8px; background: var(--text); border-radius: 2px;
  transition: transform 220ms var(--ease-out), opacity 140ms ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem var(--pad) 1rem; }
.mobile-nav a {
  display: block; padding: .85rem .2rem; color: var(--text); text-decoration: none;
  font-size: 1.05rem; font-weight: 560; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav li:last-child a { border-bottom: 0; }

/* ───────────────────────────── Hero ───────────────────────────── */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(90ch 50ch at 72% -10%, rgba(87,150,249,.16), transparent 62%),
    linear-gradient(180deg, #0c1016 0%, var(--bg) 70%);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0 0 1.15rem; padding: .4rem .85rem .4rem .6rem;
  background: var(--accent-wash); border: 1px solid rgba(87,150,249,.22);
  border-radius: 999px; color: var(--accent-soft);
  font-size: .8rem; font-weight: 560; letter-spacing: -.004em;
}
.eyebrow svg { width: 15px; height: 15px; }

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }

.lede { font-size: clamp(1.03rem, .98rem + .35vw, 1.2rem); color: var(--text-2); max-width: 54ch; margin-bottom: 1.8rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.2rem; }
@media (max-width: 560px) {
  /* Pe ecran îngust, butoanele de lățimi diferite arată neîngrijit. */
  .hero-cta { display: grid; grid-template-columns: 1fr; }
}

.trust {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: .9rem 1.4rem; list-style: none; margin: 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
}
.trust li { display: flex; flex-direction: column; gap: .12rem; }
.trust strong { font-size: 1.4rem; font-weight: 680; letter-spacing: -.03em; line-height: 1.1; }
.trust span { font-size: .835rem; color: var(--muted); line-height: 1.4; }
.trust-rate { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); }
.trust-rate .star { width: 19px; height: 19px; }

.hero-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #1a1d22; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 861px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .hero-media img { aspect-ratio: 4 / 3.1; }
}
@media (max-width: 860px) {
  .hero-media img { aspect-ratio: 4 / 3.4; }
}

/* ───────────────────────────── Secțiuni ───────────────────────────── */
.section { padding: clamp(3.2rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kicker {
  margin: 0 0 .7rem; color: var(--accent);
  font-size: .775rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
}
.sec-lede { color: var(--text-2); font-size: 1.04rem; margin-bottom: 0; }

/* ───────────────────────────── Carduri servicii ───────────────────────────── */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  padding: 1.7rem 1.45rem 1.6rem;
  transition: background-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) { .card:hover { background: var(--surface-2); } }

.card-ico {
  display: grid; place-content: center; width: 42px; height: 42px;
  margin-bottom: 1.05rem; border-radius: 11px;
  background: var(--accent-wash); color: var(--accent);
  border: 1px solid rgba(87,150,249,.2);
}
.card-ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; color: var(--muted); font-size: .915rem; line-height: 1.6; }

.note {
  display: flex; gap: .75rem; align-items: flex-start;
  margin: 1.5rem 0 0; padding: 1.05rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); color: var(--text-2); font-size: .92rem;
}
.note svg { width: 19px; height: 19px; flex: none; margin-top: .18rem; color: var(--accent); }
.note strong { color: var(--text); }

/* ───────────────────────────── Despre ───────────────────────────── */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 861px) { .about-grid { grid-template-columns: 1.05fr .95fr; } }

.about-copy p { color: var(--text-2); }
.facts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .7rem; }
.facts li {
  position: relative; padding-left: 1.75rem;
  color: var(--text-2); font-size: .945rem;
}
.facts li::before {
  content: ''; position: absolute; left: 0; top: .54em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
.facts strong { color: var(--text); font-weight: 620; }

.about-media { margin: 0; }
.about-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  background: #1a1d22;
}
.about-media figcaption { margin-top: .75rem; font-size: .84rem; color: var(--muted); }

/* ───────────────────────────── Galerie ───────────────────────────── */
.gallery {
  list-style: none; margin: 0; padding: 0 var(--pad) .6rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: .85rem;
  overflow-x: auto;
  /* Fizica proprie a browserului bate orice spring scris de mână. */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > li { scroll-snap-align: start; }

@media (min-width: 700px) {
  .gallery {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    overflow: visible; gap: 1rem;
    max-width: var(--wrap); margin-inline: auto;
  }
  .gallery-hint { display: none; }
}
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(5, 1fr); } }

.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #1a1d22; border-radius: var(--r); overflow: hidden;
  transition: transform 220ms var(--ease-out);
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 200ms ease; }
.shot:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .shot:hover img { opacity: .82; }
}

.gallery-hint { margin: .7rem auto 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ───────────────────────────── Recenzii ───────────────────────────── */
.rating-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem;
  padding: 1.5rem 1.6rem; margin-bottom: 1.6rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.rating-score { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.rating-score strong { font-size: 2.5rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.rating-score span { color: var(--muted); font-size: .9rem; }
.rating-note { flex: 1 1 18ch; margin: 0; color: var(--muted); font-size: .875rem; }

.stars { display: inline-flex; gap: 2px; color: #f5b544; }
.stars svg { width: 19px; height: 19px; }
.stars.small svg { width: 15px; height: 15px; }

.reviews {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 680px)  { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review {
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.4rem 1.45rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--text-2); font-size: .945rem; line-height: 1.62; }
.review cite {
  display: flex; flex-direction: column; gap: .1rem;
  font-style: normal; font-weight: 620; font-size: .9rem;
}
.review cite span { font-weight: 440; font-size: .79rem; color: var(--muted); }

/* ───────────────────────────── Contact ───────────────────────────── */
.contact-grid { display: grid; gap: 1.2rem; }
@media (min-width: 861px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 1.5rem; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.contact-list li { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; background: var(--surface); }
.ci {
  display: grid; place-content: center; width: 38px; height: 38px; flex: none;
  border-radius: 10px; background: var(--accent-wash); color: var(--accent);
  border: 1px solid rgba(87,150,249,.2);
}
.ci svg { width: 19px; height: 19px; }
.contact-list h3 { margin: 0 0 .25rem; font-size: .79rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 620; }
.contact-list p { margin: 0; font-size: 1.02rem; font-weight: 560; }
.contact-list .sub { margin-top: .3rem; font-size: .845rem; font-weight: 400; color: var(--muted); }
.contact-list a { color: var(--text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { color: var(--accent-soft); } }

.hours-card { padding: 1.4rem 1.5rem 1.3rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); height: 100%; }
.hours-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.hours-head h3 { margin: 0; font-size: .79rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 620; }

.status {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .79rem; font-weight: 620;
  background: rgba(37,211,102,.12); color: #4ade80; border: 1px solid rgba(37,211,102,.25);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status[data-state="closed"] { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--line); }

.hours { width: 100%; border-collapse: collapse; font-size: .935rem; }
.hours th, .hours td { padding: .52rem 0; text-align: left; font-weight: 440; }
.hours th { color: var(--text-2); }
.hours td { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.hours td.closed { color: var(--muted); }
.hours tr + tr { border-top: 1px solid var(--line-soft); }
.hours tr[data-today] th, .hours tr[data-today] td { color: var(--accent); font-weight: 650; }
.hours-card .sub { margin: .95rem 0 0; font-size: .825rem; color: var(--muted); }

/* ───────────────────────────── Hartă ───────────────────────────── */
.map-wrap {
  position: relative; margin-top: 1.2rem;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--surface);
}
.map-placeholder { position: relative; min-height: 290px; display: grid; }
.map-placeholder > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .2; filter: grayscale(.6);
}
.map-ph-inner {
  position: relative; place-self: center; text-align: center;
  padding: 2.2rem 1.5rem; max-width: 46ch;
}
.map-ph-inner h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.map-ph-inner p { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

.map-frame iframe { display: block; width: 100%; height: clamp(300px, 46vw, 440px); border: 0; }

.map-below { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }

/* ───────────────────────────── Footer ───────────────────────────── */
.site-foot { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-top: clamp(2.6rem, 5vw, 4rem); }
.foot-grid { display: grid; gap: 2rem; padding-bottom: 2.4rem; }
@media (min-width: 700px)  { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; } }

.foot-brand p { color: var(--muted); font-size: .9rem; margin: .9rem 0 1rem; max-width: 34ch; }
.foot-social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.foot-social a {
  display: grid; place-content: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-2);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.foot-social svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) {
  .foot-social a:hover { color: var(--text); border-color: #313a49; background: rgba(255,255,255,.04); }
}

.foot-col h2 { font-size: .775rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 620; margin-bottom: .95rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot-col li { font-size: .91rem; color: var(--text-2); line-height: 1.5; }
.foot-col a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--text); } }

.foot-legal { border-top: 1px solid var(--line-soft); padding-top: 1.6rem; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
.company { font-size: .8rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.2rem; }
.company strong { color: var(--text-2); font-weight: 600; }

.anpc { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.anpc img { width: 215px; height: auto; border-radius: 4px; }

.copy { font-size: .8rem; color: var(--muted); margin: 0; }
.copy a { color: var(--muted); }

/* ───────────────────── CTA flotante ───────────────────── */
.fab-wa {
  position: fixed; z-index: 80;
  right: clamp(.9rem, 2.5vw, 1.6rem);
  bottom: calc(clamp(.9rem, 2.5vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.2rem;
  background: var(--wa); color: #04220f;
  border-radius: 999px; text-decoration: none; font-weight: 680; font-size: .95rem;
  box-shadow: 0 6px 20px -6px rgba(18, 140, 62, .7), 0 2px 6px rgba(0,0,0,.4);
  transition: transform 150ms var(--ease-out), background-color 160ms ease;
}
.fab-wa svg { width: 22px; height: 22px; }
.fab-wa:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .fab-wa:hover { background: #32e074; } }

/* Pe mobil, bara de jos preia contactul rapid; butonul flotant ar dubla-o. */
.callbar { display: none; }

@media (max-width: 700px) {
  .fab-wa { display: none; }
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
    padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 12, 16, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
  }
  .callbar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px; border-radius: 12px;
    font-weight: 680; font-size: .96rem; text-decoration: none;
    transition: transform 140ms var(--ease-out);
  }
  .callbar-btn:active { transform: scale(.97); }
  .callbar-btn svg { width: 19px; height: 19px; }
  .callbar-btn.call { background: var(--accent); color: #04080f; }
  .callbar-btn.wa   { background: var(--wa); color: #04220f; }

  /* Spațiu ca bara să nu acopere footerul. */
  body { padding-bottom: 72px; }
}

/* ───────────────────────────── Lightbox ───────────────────────────── */
.lightbox {
  width: min(94vw, 1100px); max-width: none;
  padding: 0; border: 0; background: transparent; color: var(--text);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 7, 11, .88); backdrop-filter: blur(3px); }
.lightbox figure { margin: 0; }
.lightbox img {
  width: 100%; height: auto; max-height: 78vh; object-fit: contain;
  border-radius: var(--r); background: #15181d;
}
.lightbox figcaption { margin-top: .8rem; text-align: center; font-size: .89rem; color: var(--text-2); }

.lb-close {
  position: absolute; top: -.6rem; right: -.6rem; z-index: 2;
  width: 42px; height: 42px; display: grid; place-content: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.lb-close svg { width: 19px; height: 19px; }
.lb-close:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lb-close:hover { background: var(--surface-2); } }

/* Modalele rămân centrate — nu au un declanșator ancorat în pagină. */
.lightbox, .cc-modal { transform-origin: center; }

/* ───────────────────────────── Cookies ───────────────────────────── */
.cc {
  position: fixed; z-index: 120;
  left: clamp(.6rem, 2vw, 1.2rem); right: clamp(.6rem, 2vw, 1.2rem);
  bottom: calc(clamp(.6rem, 2vw, 1.2rem) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 1; transform: translateY(0);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.cc[data-enter] { opacity: 0; transform: translateY(14px) scale(.985); }
.cc-inner {
  display: grid; gap: 1.1rem; padding: 1.25rem 1.4rem;
  max-width: var(--wrap); margin-inline: auto;
}
@media (min-width: 860px) {
  .cc-inner { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
}
.cc-copy h2 { font-size: 1rem; margin-bottom: .3rem; }
.cc-copy p { margin: 0; font-size: .875rem; color: var(--text-2); line-height: 1.55; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cc-actions .btn { padding: .68rem 1.1rem; min-height: 44px; font-size: .9rem; }

@media (max-width: 700px) {
  /* Bannerul stă deasupra barei de contact, nu peste ea. */
  .cc { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

.cc-modal {
  width: min(94vw, 580px); max-width: none; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.cc-modal::backdrop { background: rgba(5, 7, 11, .8); }
.ccp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem .9rem; border-bottom: 1px solid var(--line-soft); }
.ccp-head h2 { margin: 0; font-size: 1.1rem; }
.ccp-head .lb-close { position: static; width: 36px; height: 36px; }

.ccp-body { padding: .5rem 1.4rem; }
.ccp-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; padding: 1.1rem 0; }
.ccp-row + .ccp-row { border-top: 1px solid var(--line-soft); }
.ccp-row h3 { margin: 0 0 .25rem; font-size: .96rem; }
.ccp-row p { margin: 0; font-size: .855rem; color: var(--muted); line-height: 1.55; max-width: 44ch; }

.pill { flex: none; padding: .32rem .7rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 560; }

.switch { flex: none; position: relative; display: inline-block; width: 46px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--muted);
  transition: transform 200ms var(--ease-out), background-color 180ms ease;
}
.switch input:checked + .track { background: var(--accent-wash); border-color: rgba(87,150,249,.45); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 3px; }

.ccp-foot { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; padding: 1rem 1.4rem 1.3rem; border-top: 1px solid var(--line-soft); }

/* ───────────────────────────── Reveal ───────────────────────────── */
/* Decorativ. Nu blochează nimic: fără JS, totul e deja vizibil. */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal[data-shown] {
  opacity: 1; transform: none;
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  /* Mișcarea dispare; opacitatea rămâne, pentru că ajută înțelegerea. */
  .js .reveal { transform: none; }
  .js .reveal[data-shown] { transition: opacity 260ms ease; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ───────────────────────────── Desktop ───────────────────────────── */
@media (min-width: 981px) {
  .nav { display: block; }
  .head-call { display: inline-flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ───────────────────── Pagini de document (legal, 404) ───────────────────── */
.doc-page { padding-bottom: 0; }
.head-call-always { display: inline-flex; padding: .6rem 1.05rem; min-height: 42px; font-size: .9rem; }

.doc { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.doc-wrap { max-width: 76ch; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--accent-soft); } }
.crumbs span[aria-hidden] { margin: 0 .35rem; opacity: .5; }

.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin-bottom: .35rem; }
.doc-meta { color: var(--muted); font-size: .86rem; margin-bottom: 2rem; }
.doc-lede {
  font-size: 1.07rem; color: var(--text-2);
  padding: 1.15rem 1.35rem; margin-bottom: 2.5rem;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent); border-radius: var(--r);
}

.doc h2 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); margin: 2.6rem 0 .8rem; }
.doc h3 { font-size: 1.03rem; margin: 1.9rem 0 .6rem; color: var(--text); }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.doc li { margin-bottom: .5rem; }
.doc strong { color: var(--text); font-weight: 620; }

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .87em; padding: .14em .42em; border-radius: 5px;
  background: rgba(255,255,255,.06); color: var(--accent-soft);
  word-break: break-word;
}

.doc-note {
  font-size: .9rem; padding: .95rem 1.15rem; margin: .4rem 0 1.4rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
}

.table-scroll { overflow-x: auto; margin: 0 0 .6rem; -webkit-overflow-scrolling: touch; }
.data { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .89rem; }
.data th, .data td { padding: .8rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.data thead th { color: var(--muted); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 620; }
.data td { color: var(--text-2); }

.doc-back { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.doc-back a { color: var(--accent-soft); text-decoration: none; font-weight: 560; }

.doc-foot { margin-top: 0; }

/* ───────────────────────────── 404 ───────────────────────────── */
.nf { display: grid; place-items: center; text-align: center; min-height: 62svh; padding: 3rem 0; }
.nf-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--accent); margin: 0; }
.nf h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); margin: .8rem 0 .6rem; }
.nf p { color: var(--text-2); max-width: 46ch; margin-inline: auto; }
.nf-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.8rem; }

@media print {
  .site-head, .fab-wa, .callbar, .cc, .map-wrap, .gallery { display: none; }
  body { background: #fff; color: #000; }
  /* La tipărire nu se derulează, deci IntersectionObserver nu se declanșează:
     fără asta, pagina tipărită ar ieși goală. */
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
