/* ==========================================================================
   0. FONTURI — găzduite local (nu Google Fonts)
   Motivul: Google Fonts încărcat de la fonts.googleapis.com transmite IP-ul
   fiecărui vizitator către Google la fiecare pagină — problemă GDPR reală
   pentru un site din UE, sancționată deja în instanțe din Germania. Fișierele
   sunt aici, servite de pe domeniul propriu, cu cache de un an din .htaccess.
   Subsetul e latin-ext, care acoperă diacriticele românești (ă â î ș ț) și
   maghiare (ő ű) — subsetul „latin" simplu NU le conține.
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jbmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jbmono-400-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jbmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jbmono-500-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/bricolage-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/bricolage-600-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/bricolage-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/bricolage-700-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}

/* ==========================================================================
   DELIAtti — design system
   Ordinea fișierului: tokens → reset → tipografie → layout → componente →
   secțiuni → animații → responsive. Nu adăuga reguli în afara secțiunii lor,
   ca specificitățile să rămână previzibile.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Culori */
  --ink:          #1B1C1F;
  --ink-soft:     #34363B;
  --paper:        #F6F4F1;
  --paper-pure:   #FFFFFF;
  --muted:        #6E6F73;
  --line:         #DEDAD4;
  --accent:       #A4161A;
  --accent-deep:  #6E0D10;
  --accent-tint:  #F3E4E3;

  /* Tipografie */
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --fs-display: clamp(3.2rem, 8vw, 8.5rem);
  --fs-h1:      clamp(2.6rem, 6vw, 5.5rem);
  --fs-h2:      clamp(2rem, 4vw, 3.4rem);
  --fs-h3:      clamp(1.4rem, 2.2vw, 2rem);
  --fs-lead:    clamp(1.15rem, 1.6vw, 1.5rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-label:   0.75rem;

  /* Spațiere — bază 8 */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px; --s-11: 176px; --s-12: 240px;

  --section-y: clamp(96px, 12vh, 176px);
  --gutter:    clamp(20px, 5vw, 48px);
  --rail:      clamp(0px, 4vw, 88px); /* lățimea șinei de cadre */

  /* Lățimi de conținut — ritm asimetric */
  --w-narrow: 680px;
  --w-mid:    960px;
  --w-wide:   1200px;
  --w-max:    1440px;

  --radius:   4px;
  --ease:     cubic-bezier(.16, 1, .3, 1);
  --dur:      600ms;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-5);
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

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

/* --------------------------------------------------------------------------
   3. TIPOGRAFIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

h1, h2 { hyphens: manual; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.10; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.20; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

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

/* Link de text cu subliniere care se desenează de la stânga */
.tlink {
  position: relative;
  font-weight: 500;
  display: inline-block;
  padding-bottom: 2px;
}
.tlink::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.tlink:hover::after,
.tlink:focus-visible::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: var(--w-narrow); }
.mid    { max-width: var(--w-mid); }
.wide   { max-width: var(--w-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .lead,
.section--dark .label { color: rgba(246, 244, 241, 0.62); }
.section--tight { padding-block: clamp(64px, 8vh, 112px); }

.section-head { margin-bottom: var(--s-9); }
.section-head .label { margin-bottom: var(--s-4); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .rule { background: rgba(246, 244, 241, 0.16); }

/* --------------------------------------------------------------------------
   5. BUTOANE
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent); }

.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--paper); }

.section--dark .btn--primary { background: var(--paper); color: var(--ink); }
.section--dark .btn--primary:hover { background: var(--accent); color: var(--paper); }
.section--dark .btn--ghost { border-color: rgba(246, 244, 241, 0.4); color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: var(--s-5);
  transition: background-color 300ms var(--ease), padding 300ms var(--ease), border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(246, 244, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
  padding-block: var(--s-3);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; align-items: center; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: var(--fs-small);
  font-weight: 400;
  position: relative;
  padding-block: var(--s-2);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

/* Dropdown servicii */
.nav__item { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + var(--s-4)); left: calc(-1 * var(--s-5));
  min-width: 320px;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  padding: var(--s-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__panel a {
  display: block; padding: var(--s-3) var(--s-4);
  transition: background-color 200ms var(--ease);
}
.nav__panel a:hover { background: var(--paper); }
.nav__panel strong { display: block; font-weight: 500; font-size: 0.95rem; }
.nav__panel span { display: block; font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.nav__panel a.is-primary { background: var(--accent-tint); }
.nav__panel a.is-primary:hover { background: var(--accent); color: var(--paper); }
.nav__panel a.is-primary:hover span { color: rgba(246, 244, 241, 0.8); }

/* Comutator de limbă */
.lang { display: flex; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-label); }
.lang a { padding: 2px 4px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lang a.is-active { color: var(--ink); }
.lang a:hover { color: var(--accent); }

/* Buton meniu mobil */
.burger { display: none; width: 28px; height: 18px; position: relative; }
.burger span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
body.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.is-open .burger span:nth-child(2) { opacity: 0; }
body.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Panou mobil */
.mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: calc(var(--s-11)) var(--gutter) var(--s-8);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 480ms var(--ease);
  overflow-y: auto;
}
body.is-open .mobile { transform: translateY(0); }
body.is-open { overflow: hidden; }

.mobile__list { list-style: none; margin: 0; padding: 0; }
.mobile__list li { border-bottom: 1px solid var(--line); }
.mobile__list a {
  display: block; padding: var(--s-5) 0;
  font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.02em;
}
.mobile__list .sub { font-family: var(--font-body); font-size: 1.05rem; padding-left: var(--s-5); color: var(--muted); }
.mobile__foot { margin-top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-5); }

/* Header peste un hero întunecat — se inversează până la lipire */
.header.is-invert:not(.is-stuck) { color: var(--paper); }
.header.is-invert:not(.is-stuck) .logo,
.header.is-invert:not(.is-stuck) .nav__link { color: var(--paper); }
.header.is-invert:not(.is-stuck) .logo em { color: #E24B44; }
.header.is-invert:not(.is-stuck) .lang a { color: rgba(246, 244, 241, 0.55); }
.header.is-invert:not(.is-stuck) .lang a.is-active { color: var(--paper); }
.header.is-invert:not(.is-stuck) .lang a:hover { color: #E24B44; }
.header.is-invert:not(.is-stuck) .btn--primary { background: var(--paper); color: var(--ink); }
.header.is-invert:not(.is-stuck) .btn--primary:hover { background: var(--accent); color: var(--paper); }
.header.is-invert:not(.is-stuck) .burger span { background: var(--paper); }

/* --------------------------------------------------------------------------
   7. SEMNĂTURA VIZUALĂ — șina de cadre
   Marcaje de secțiune în stil peliculă 35mm, pe marginea din stânga.
   Funcțional: arată unde ești în pagină. Legat de subiect: e vocabularul
   fotografiei, nu decor generic.
   -------------------------------------------------------------------------- */
.filmrail {
  position: fixed;
  left: var(--s-6); top: 50%; transform: translateY(-50%);
  z-index: 50;
  display: none;
  flex-direction: column; gap: var(--s-4);
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease), color 400ms var(--ease);
}
.filmrail.is-visible { opacity: 1; pointer-events: auto; }
.filmrail.is-inverted { color: rgba(246, 244, 241, 0.55); }
.filmrail a {
  display: flex; align-items: center; gap: var(--s-2);
  opacity: 0.5;
  transition: opacity 300ms var(--ease), color 300ms var(--ease);
}
.filmrail a::before {
  content: ''; width: 10px; height: 1px; background: currentColor;
  transition: width 300ms var(--ease), background-color 300ms var(--ease);
}
.filmrail a:hover { opacity: 1; }
.filmrail a.is-current { opacity: 1; color: var(--accent); }
.filmrail.is-inverted a.is-current { color: #E24B44; }
.filmrail a.is-current::before { width: 22px; }

/* Marcaj de cadru pe titlurile de secțiune */
.frame {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  position: relative;
  isolation: isolate;
  padding-bottom: var(--s-9);
  padding-top: var(--s-11);
  overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,17,19,.55) 0%, rgba(16,17,19,.25) 40%, rgba(16,17,19,.85) 100%);
}
.hero--dark { color: var(--paper); }
.hero--dark .lead { color: rgba(246, 244, 241, 0.72); }
.hero--dark .label { color: rgba(246, 244, 241, 0.6); }

.hero__h1 {
  font-size: var(--fs-h1);
  max-width: 18ch;
  margin-block: var(--s-5) var(--s-6);
}
.hero .btn--primary { background: var(--paper); color: var(--ink); }
.hero .btn--primary:hover, .hero .btn--primary:focus-visible { background: var(--accent); color: var(--paper); }
.hero .btn--ghost { border-color: rgba(246, 244, 241, 0.38); color: var(--paper); }
.hero .btn--ghost:hover, .hero .btn--ghost:focus-visible { background: var(--paper); color: var(--ink); }

.hero__meta {
  margin-top: var(--s-8);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--s-5); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(246, 244, 241, 0.55);
}

/* --------------------------------------------------------------------------
   9. BLOCURI DE CONȚINUT
   -------------------------------------------------------------------------- */

/* Bloc problemă — asimetric, text îngust împins la dreapta */
.statement { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
.statement__h2 { max-width: 16ch; }
.statement__body { max-width: 56ch; }

/* Carduri de servicii */
.svc { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.svc__item {
  background: var(--paper);
  padding: var(--s-8) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: background-color 400ms var(--ease);
  position: relative;
}
.svc__item:hover { background: var(--paper-pure); }
.svc__item--lead { grid-column: 1 / -1; background: var(--ink); color: var(--paper); }
.svc__item--lead:hover { background: var(--ink-soft); }
.svc__item--lead p { color: rgba(246, 244, 241, 0.72); max-width: 60ch; }
.svc__item--lead .frame { color: #ff4b3f; }
.svc__num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--muted); }
.svc__item--lead .svc__num { color: rgba(246, 244, 241, 0.5); }
.svc__item h3 { max-width: 14ch; }
.svc__item p { font-size: 0.9375rem; color: var(--muted); flex: 1; }
.svc__item--lead h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 12ch; }

/* Listă motive */
.reasons { display: grid; gap: 1px; background: var(--line); }
.reasons__item { background: var(--paper); padding: var(--s-7) var(--s-6); }
.reasons__item h3 { font-size: 1.25rem; margin-bottom: var(--s-3); max-width: 20ch; }
.reasons__item p { font-size: 0.9375rem; color: var(--muted); }
.reasons__num {
  font-family: var(--font-mono); font-size: var(--fs-label);
  color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: var(--s-5);
}

/* Industrii */
.tags { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tags span {
  border: 1px solid var(--line);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}
.tags span:hover { border-color: var(--accent); color: var(--accent); }

/* Proces */
.steps { border-top: 1px solid var(--line); }
.steps__item {
  display: grid; grid-template-columns: 64px 1fr;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
  transition: padding-left 400ms var(--ease);
}
.steps__item:hover { padding-left: var(--s-4); }
/* Poziționare explicită — cu 3 copii într-un grid de 2 coloane, plasarea
   automată a browserului trimite descrierea sub numărul de pe rândul
   următor, în loc de sub titlu. Fixăm fiecare element în celula lui,
   la toate lățimile, ca să nu depindem deloc de auto-flow. */
.steps__n { grid-column: 1; grid-row: 1; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--accent); padding-top: 4px; }
.steps__t { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.01em; }
.steps__d { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* Proiecte — blocuri alternante */
.work__item {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.work__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--ink-soft); }
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--dur) var(--ease), transform 700ms var(--ease);
}
.work__item:hover .work__media img { filter: grayscale(0); transform: scale(1.04); }
.work__body { padding: var(--s-7) 0; display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.work__body h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 16ch; }
.work__meta { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.work__placeholder {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--line);
  color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-small);
  text-align: center; padding: var(--s-5);
}

/* CTA final */
.finale { text-align: left; }
.finale h2 { max-width: 18ch; margin-bottom: var(--s-5); }
.finale .lead { margin-bottom: var(--s-7); }
.finale__phone {
  font-family: var(--font-mono); font-size: var(--fs-small);
  color: rgba(246, 244, 241, 0.7);
}
.finale__phone a { color: var(--paper); }

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--paper); padding-block: var(--s-9) var(--s-6); }
.footer a { color: rgba(246, 244, 241, 0.72); transition: color 240ms var(--ease); }
.footer a:hover { color: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); }
.footer__brand .logo { font-size: 1.5rem; margin-bottom: var(--s-4); display: inline-block; }
.footer__tag { font-family: var(--font-display); font-size: 1.125rem; color: rgba(246,244,241,.72); max-width: 20ch; }
.footer h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246,244,241,.5); font-weight: 400; margin: 0 0 var(--s-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); font-size: 0.9375rem; }
.footer__legal {
  margin-top: var(--s-9); padding-top: var(--s-5);
  border-top: 1px solid rgba(246,244,241,.14);
  display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: space-between;
  font-size: var(--fs-small); color: rgba(246,244,241,.5);
}
.footer__legal ul { flex-direction: row; gap: var(--s-5); }

/* --------------------------------------------------------------------------
   11. 404
   -------------------------------------------------------------------------- */
.error { min-height: 70svh; display: flex; align-items: center; }
.error h1 { margin-bottom: var(--s-5); }

/* --------------------------------------------------------------------------
   12. ANIMAȚII
   -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

.reveal-lines span {
  display: block;
  overflow: hidden;
}
.reveal-lines span > i {
  display: block;
  font-style: normal;
}
html.js .reveal-lines span > i {
  transform: translateY(100%);
  transition: transform 800ms var(--ease);
}
html.js .reveal-lines.is-in span > i { transform: none; }
html.js .reveal-lines.is-in span:nth-child(2) > i { transition-delay: 80ms; }
html.js .reveal-lines.is-in span:nth-child(3) > i { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-lines span > i { transform: none; }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
}

@media (min-width: 901px) {
  .mobile { display: none; }

  .statement { grid-template-columns: 1fr 1fr; gap: var(--s-10); align-items: start; }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .reasons { grid-template-columns: 1fr 1fr; }
  .work__item { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-8); align-items: center; }
  .work__item:nth-child(even) .work__media { order: 2; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-7); }
  .finale h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
}

@media (min-width: 1200px) {
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .steps__item { grid-template-columns: 88px 1fr 1.2fr; align-items: baseline; }
  .steps__n { grid-row: 1; }
  .steps__t { grid-column: 2; grid-row: 1; }
  .steps__d { grid-column: 3; grid-row: 1; margin: 0; }
}

/* Șina apare doar de la 1600px, unde marginea din afara conținutului
   (max-width 1440) e suficientă ca să nu calce peste text. */
@media (min-width: 1600px) {
  .filmrail { display: flex; }
}

@media (max-width: 600px) {
  .hero { min-height: 92svh; }
  .hero__h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .steps__item { grid-template-columns: 48px 1fr; }
}

@media print {
  .header, .mobile, .filmrail, .hero__media { display: none; }
}

/* ==========================================================================
   14. PAGINI INTERIOARE — componente adăugate în etapa 2
   ========================================================================== */

/* Hero de pagină interioară — mai scund decât cel de pe homepage */
.hero--page { min-height: 62svh; }
@media (max-width: 600px) { .hero--page { min-height: 68svh; } }

.crumbs {
  display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(246, 244, 241, 0.5);
  margin-bottom: var(--s-6);
}
.crumbs a { transition: color 240ms var(--ease); }
.crumbs a:hover { color: var(--paper); }
.crumbs__current { color: rgba(246, 244, 241, 0.85); }

.section--head { padding-bottom: var(--s-8); }

/* Grupuri de livrabile */
.groups { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.groups__item { background: var(--paper); padding: var(--s-7) var(--s-6); }
.groups__item h3 {
  font-size: 1.125rem; margin-bottom: var(--s-5);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line);
}
.groups__item ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.groups__item li {
  font-size: 0.9375rem; color: var(--muted);
  padding-left: var(--s-5); position: relative;
}
.groups__item li::before {
  content: ''; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 1px; background: var(--accent);
}

/* Citat de accent */
.pull {
  margin: var(--s-8) 0 0;
  padding: var(--s-6) 0 0;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 42ch;
}
.pull strong { color: var(--accent); font-weight: 600; }

/* Întrebări frecvente */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: var(--s-6) var(--s-8) var(--s-6) 0;
  position: relative;
  font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em;
  transition: color 240ms var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__mark {
  position: absolute; right: 0; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%);
}
.faq__mark::before, .faq__mark::after {
  content: ''; position: absolute; background: var(--accent);
  left: 0; top: 50%; width: 14px; height: 1.5px;
  transition: transform 300ms var(--ease);
}
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); }
.faq__body { padding: 0 0 var(--s-6); }
.faq__body p { color: var(--muted); font-size: 0.9375rem; max-width: 66ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr; gap: var(--s-9); }
.contact__aside-h { font-size: 1.25rem; margin-bottom: var(--s-6); }
.contact__list { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-direction: column; gap: var(--s-5); }
.contact__list li { font-size: 0.9375rem; }
.contact__list .label { margin-bottom: var(--s-1); }
.contact__note { font-size: var(--fs-small); color: var(--muted); padding-top: var(--s-5); border-top: 1px solid var(--line); }

/* Formular */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin: 0 0 var(--s-5); max-width: none; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-5); }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field .req { color: var(--accent); }
.field .opt { color: var(--muted); font-weight: 400; }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea {
  font: inherit; font-size: 1rem;
  padding: var(--s-4);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  width: 100%;
  transition: border-color 240ms var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E6F73' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-4) center; background-size: 10px;
  padding-right: var(--s-8);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.field__err { font-size: var(--fs-small); color: var(--accent); }

.field--check label { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400; font-size: var(--fs-small); color: var(--muted); cursor: pointer; }
.field--check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: var(--s-6); border-radius: var(--radius); margin-bottom: var(--s-5); }
.notice--ok  { background: var(--ink); color: var(--paper); }
.notice--ok p { color: rgba(246, 244, 241, 0.75); }
.notice--err { background: var(--accent-tint); color: var(--accent-deep); border: 1px solid var(--accent); font-size: 0.9375rem; }

@media (min-width: 901px) {
  .groups { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1.35fr 0.65fr; gap: var(--s-10); }
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .groups { grid-template-columns: repeat(4, 1fr); }
  .groups--three { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   15. PREȚURI, PROIECTE, DESPRE — etapa 3
   ========================================================================== */

/* --- Prețuri --- */
.price-group { margin-bottom: var(--s-9); }
.price-group__h {
  font-size: var(--fs-label); font-family: var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  font-weight: 400; margin-bottom: var(--s-5);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--ink);
}
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list__row {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  justify-content: space-between; align-items: baseline;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 400ms var(--ease);
}
.price-list__row:hover { padding-left: var(--s-3); }
.price-list__row.is-highlight { background: var(--accent-tint); padding-inline: var(--s-5); border-bottom-color: transparent; }
.price-list__label span { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; display: block; }
.price-list__label small { font-size: var(--fs-small); color: var(--muted); }
.price-list__value { font-family: var(--font-mono); font-size: 1rem; white-space: nowrap; }
.price-list__from { color: var(--muted); font-size: var(--fs-small); margin-right: var(--s-2); }
.price-list__value strong { font-weight: 500; }
.price-list__per { color: var(--muted); font-size: var(--fs-small); }
.price-list__value em { font-style: normal; color: var(--muted); font-size: var(--fs-small); }
.price-foot { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); max-width: 62ch; }
.price-foot h3 { font-size: 1.125rem; margin-bottom: var(--s-3); }
.price-foot p { color: var(--muted); font-size: 0.9375rem; }

/* --- Fișa proiectului --- */
.factsheet { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin: 0; border-block: 1px solid var(--line); }
.factsheet__item { background: var(--paper); padding: var(--s-5) var(--s-5); }
.factsheet dt {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--s-2);
}
.factsheet dd { margin: 0; font-size: 0.9375rem; }
.factsheet--compact .factsheet__item { padding: var(--s-4) var(--s-5); }

/* --- Corpul studiului de caz --- */
.casebody { display: grid; gap: var(--s-8); }
.casebody__block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: var(--s-4); max-width: 20ch; }
.casebody__block p { max-width: 66ch; color: var(--ink); }

.casebody + .casebody__block { margin-top: var(--s-9); }

.checklist { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { position: relative; padding-left: var(--s-5); font-size: 0.9375rem; color: var(--muted); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--accent); }

/* --- Galerie proiect --- */
.gallery { display: grid; grid-template-columns: 1fr; gap: var(--s-2); padding-inline: var(--gutter); }
.gallery__item { margin: 0; overflow: hidden; background: var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 700ms var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }

/* --- Despre --- */
.about { display: grid; grid-template-columns: 1fr; gap: var(--s-8); }
.about__portrait { margin: 0; }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__portrait.is-empty { aspect-ratio: 4 / 5; border: 1px dashed var(--line); display: grid; place-items: end start; padding: var(--s-5); }
.about__portrait figcaption {
  margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.about__text p { max-width: 60ch; }

@media (min-width: 901px) {
  .factsheet { grid-template-columns: repeat(3, 1fr); }
  .factsheet--compact { grid-template-columns: repeat(2, 1fr); }
  .casebody { grid-template-columns: 1fr 1fr; gap: var(--s-9) var(--s-8); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: 1 / -1; }
  .gallery__item--wide img { aspect-ratio: 21 / 9; }
  .about { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-10); align-items: start; }
}
@media (min-width: 1200px) {
  .factsheet { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 600px) {
  .factsheet { grid-template-columns: 1fr; }

  /* Prețuri pe mobil: rândul devine un mini-tabel de 2 coloane —
     denumire+notă la stânga, prețul la dreapta, aliniat vizual pe o
     singură linie de bază, mai scanabil decât stivuirea completă. */
  .price-list__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: var(--s-4);
    row-gap: 2px;
    padding-block: var(--s-4);
  }
  .price-list__row:hover { padding-left: 0; } /* micro-hover-ul de desktop n-are sens pe atins */
  .price-list__row.is-highlight { padding-inline: var(--s-4); }
  .price-list__label { grid-column: 1; }
  .price-list__label span { font-size: 1rem; }
  .price-list__value { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
  .price-list__from { display: block; margin-right: 0; }
}

/* ==========================================================================
   16. TEXT LUNG — pagini legale și articole
   ========================================================================== */
.legal-meta {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-top: var(--s-5);
}
.crumbs--light { color: var(--muted); margin-bottom: var(--s-5); }
.crumbs--light a:hover { color: var(--accent); }

.prose > section { margin-bottom: var(--s-8); }
.prose h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  margin-bottom: var(--s-4);
  display: flex; gap: var(--s-4); align-items: baseline;
}
.prose__num { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent); flex-shrink: 0; }
.prose p { margin-bottom: var(--s-4); color: var(--ink); }
.prose ul { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-3); }
.prose li { position: relative; padding-left: var(--s-5); color: var(--muted); font-size: 0.9375rem; }
.prose li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--accent); }
.prose strong { font-weight: 600; }

/* Articolele au ritm mai generos decât textele legale */
.prose--article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: var(--s-8); margin-bottom: var(--s-5);
  padding-top: var(--s-6); border-top: 1px solid var(--line);
}
.prose--article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose--article p { font-size: 1.0625rem; line-height: 1.7; }
.prose--article > p:first-child { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
.prose--article blockquote {
  margin: var(--s-7) 0;
  padding: var(--s-5) 0 var(--s-5) var(--s-6);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.9vw, 1.375rem);
  line-height: 1.4; letter-spacing: -0.01em;
}
.prose--article li { font-size: 1rem; color: var(--ink); }

.legal-contact { margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--ink); }
.legal-contact h3 { font-size: 1.125rem; margin-bottom: var(--s-3); }

/* Lista de articole */
.posts { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.posts__item {
  background: var(--paper); padding: var(--s-7) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: background-color 400ms var(--ease);
}
.posts__item:hover { background: var(--paper-pure); }
.posts__meta { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.posts__item h2, .posts__item h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); max-width: 22ch; }
.posts__item p { font-size: 0.9375rem; color: var(--muted); flex: 1; }

.post-cta { margin-top: var(--s-9); padding: var(--s-7) var(--s-6); background: var(--ink); color: var(--paper); }
.post-cta h3 { font-size: 1.375rem; margin-bottom: var(--s-3); }
.post-cta p { color: rgba(246, 244, 241, 0.72); font-size: 0.9375rem; }
.post-cta .btn--primary { background: var(--paper); color: var(--ink); }
.post-cta .btn--primary:hover { background: var(--accent); color: var(--paper); }
.post-cta .btn--ghost { border-color: rgba(246, 244, 241, 0.4); color: var(--paper); }
.post-cta .btn--ghost:hover { background: var(--paper); color: var(--ink); }

@media (min-width: 901px) {
  .posts { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   17. LOGO CA IMAGINE (opțional, din panou)
   -------------------------------------------------------------------------- */
.logo__img { height: 42px; width: auto; display: block; }
.logo__img--footer { height: 48px; }

/* --------------------------------------------------------------------------
   18. BANNER DE CONSIMȚĂMÂNT (cookie-uri opționale)
   -------------------------------------------------------------------------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: var(--s-5) var(--gutter);
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.consent[hidden] { display: none; }
.consent__inner {
  max-width: var(--w-wide); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between;
}
.consent p { margin: 0; font-size: 0.9rem; color: rgba(246,244,241,.82); max-width: 60ch; }
.consent a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: var(--s-3); flex-shrink: 0; }
.consent .btn--ghost { border-color: rgba(246,244,241,.4); color: var(--paper); }
.consent .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.consent .btn--primary { background: var(--paper); color: var(--ink); }
.consent .btn--primary:hover { background: var(--accent); color: var(--paper); }

@media (max-width: 600px) {
  .consent__inner { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: stretch; }
  .consent__actions .btn { flex: 1; }
}
