/* PROINT COM — stiluri site */

:root {
  --purple: #4a2684;
  --purple-700: #3a1d69;
  --purple-900: #241142;
  --purple-100: #ece6f6;
  --purple-50: #f6f3fb;
  --orange: #f09619;
  --orange-600: #d97f06;
  --orange-100: #fdf0dc;
  --blue: #1b74b4;
  --blue-100: #e3f0fa;
  --green: #1f9d5c;
  --green-100: #e2f5ea;
  --red: #c8372d;
  --red-100: #fbe7e5;
  --text: #1d1a26;
  --muted: #5f5a6e;
  --border: #e5e1ee;
  --bg: #ffffff;
  --surface: #f8f7fb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(36, 17, 66, .05), 0 6px 20px rgba(36, 17, 66, .06);
  --shadow-lg: 0 2px 4px rgba(36, 17, 66, .06), 0 18px 40px rgba(36, 17, 66, .12);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--purple-900); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); font-weight: 700; }
h3, .h3 { font-size: 1.2rem; font-weight: 650; }
.h4 { font-size: 1rem; font-weight: 650; margin-top: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.4rem 0; }
code { background: var(--purple-50); padding: .1em .35em; border-radius: 5px; font-size: .92em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.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-link { position: absolute; left: 12px; top: -60px; background: var(--purple); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.mt { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }
.stack { list-style: none; padding: 0; margin: 0; }
.stack-lg > * + * { margin-top: 2rem; }
.text-success { color: var(--green); }
.text-danger { color: var(--red) !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-xl { width: 48px; height: 48px; color: var(--purple); opacity: .5; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: .75em 1.25em; border-radius: 999px; border: 2px solid transparent;
  background: var(--purple); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--purple); }
.btn-primary:hover { background: var(--purple-700); }
.btn-accent { background: var(--orange); color: #241142; }
.btn-accent:hover { background: var(--orange-600); color: #fff; box-shadow: 0 6px 18px rgba(240, 150, 25, .35); }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple-100); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-50); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.btn-text { background: none; color: var(--purple); padding-left: .4em; padding-right: .4em; }
.btn-text:hover { color: var(--orange-600); background: none; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #a82b22; }
.btn-sm { font-size: .9rem; padding: .55em 1em; }
.btn-lg { font-size: 1.05rem; padding: .9em 1.6em; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn-icon { background: none; border: 0; color: var(--muted); padding: .4rem; border-radius: 8px; cursor: pointer; display: inline-flex; }
.btn-icon:hover { color: var(--red); background: var(--red-100); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-back { text-decoration: none; font-weight: 600; font-size: .95rem; }

/* ---------- Antet ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
/* backdrop-filter ar face meniul mobil (position: fixed) să rămână prins în antet, deci doar pe ecrane mari */
@media (min-width: 1021px) {
  .site-header { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: space-between; }
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 550;
}
.nav-links a:hover { background: var(--purple-50); color: var(--purple); }
.nav-links a[aria-current="page"] { color: var(--purple); background: var(--purple-100); }
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.lang-switch, .nav-account {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .7rem; border-radius: 999px; text-decoration: none;
  color: var(--text); font-weight: 600; font-size: .92rem;
}
.lang-switch:hover, .nav-account:hover, .nav-account.is-active { background: var(--purple-50); color: var(--purple); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border);
    background: #fff; color: var(--purple); cursor: pointer;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle-close { display: none; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1rem;
    padding: 1rem 20px 2rem; background: #fff; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; transition: opacity .18s, transform .18s; }
  .nav-links { flex-direction: column; margin: 0; gap: .15rem; }
  .nav-links a { padding: .85rem 1rem; font-size: 1.1rem; border-radius: 12px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: .5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
  .lang-switch, .nav-account { padding: .8rem 1rem; font-size: 1rem; border-radius: 12px; }
  .nav-actions .btn { padding: .9em 1.2em; font-size: 1rem; }
  .no-js .site-nav { position: static; opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .brand img { height: 34px; }
  :root { --header-h: 64px; }
}

/* ---------- Mesaje ---------- */
.flash-wrap { padding-top: 1rem; }
.flash {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: var(--radius-sm); margin: 0 0 .75rem;
  background: var(--blue-100); color: #0f4a75; font-weight: 500;
}
.flash .icon { margin-top: .15em; }
.flash-success { background: var(--green-100); color: #145c37; }
.flash-error { background: var(--red-100); color: #8b241c; }
.form-alert { background: var(--red-100); color: #8b241c; padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(27, 116, 180, .45), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(240, 150, 25, .22), transparent 60%),
    linear-gradient(135deg, #3a1d69 0%, #4a2684 50%, #2f1757 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -.02em; margin-bottom: .4em; }
.hero-text { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: rgba(255, 255, 255, .9); font-size: .95rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges .icon { color: var(--orange); }
.hero-art { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 30px 40px rgba(10, 4, 25, .35)); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); margin-bottom: .9rem; }
.eyebrow-light { color: var(--orange); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); padding: .35rem .8rem; border-radius: 999px; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-svg { max-width: 340px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-svg { max-width: 230px; }
  .hero-inner { gap: 1.25rem; padding-top: 2rem; }
}

/* ---------- Secțiuni ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.section-tint { background: var(--surface); }
.section-dark { background: linear-gradient(160deg, var(--purple-900), var(--purple-700)); color: rgba(255, 255, 255, .85); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .75); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-head-row h1, .section-head-row h2 { margin-bottom: .2em; }
.page-head { background: linear-gradient(180deg, var(--purple-50), #fff); padding: clamp(2.2rem, 5vw, 3.8rem) 0 1rem; }
.page-head .lead { max-width: 46em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.lead-sm { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Carduri ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--purple-100); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  background: var(--purple-50); color: var(--purple); flex: none;
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon-blue { background: var(--blue-100); color: var(--blue); }
.card-icon-lg { width: 64px; height: 64px; border-radius: 18px; margin: 0; }
.card-icon-lg .icon { width: 32px; height: 32px; }
.service-card { padding: 1.75rem; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--purple), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.service-card:hover::after { transform: scaleX(1); }
.service-card p { color: var(--muted); }
.card-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; color: var(--purple); }
.product-card p { font-size: .93rem; }
.card-danger { border-color: #f1c7c2; }

/* ---------- Pași ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--surface); border-radius: var(--radius); }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: .9rem;
  background: var(--orange); color: #241142; font-weight: 800; font-size: 1.1rem;
}
@media (min-width: 821px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -1.25rem; width: 1.25rem; border-top: 2px dashed var(--orange); }
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- De ce noi ---------- */
.why-item { padding: .5rem 0; }
.why-item p { margin: 0; color: rgba(255, 255, 255, .72); }
.why-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: var(--orange); margin-bottom: .9rem; }
.why-icon .icon { width: 24px; height: 24px; }

/* ---------- Galerie ---------- */
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery-link { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-link:hover img { transform: scale(1.04); }
.gallery-caption { padding: .9rem 1.1rem 1.1rem; }
.gallery-caption p { margin: .4rem 0 0; font-weight: 550; font-size: .95rem; }
.gallery-caption p.muted { font-weight: 400; font-size: .85rem; }
.placeholder-box {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; gap: .5rem; align-items: center; justify-content: center;
  color: var(--purple); background:
    repeating-linear-gradient(45deg, var(--purple-50) 0 14px, #fff 14px 28px);
  border-bottom: 1px dashed var(--purple-100); font-weight: 600; font-size: .9rem;
}
.placeholder-box .icon { width: 44px; height: 44px; opacity: .55; }
.tag { display: inline-block; font-size: .75rem; font-weight: 650; padding: .2rem .55rem; border-radius: 999px; background: var(--purple-50); color: var(--purple); }
.tag-labor { background: var(--orange-100); color: #8a4d00; }
.tag-product { background: var(--blue-100); color: #0f4a75; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 550; font-size: .92rem; background: #fff; }
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip.is-active { background: var(--purple); border-color: var(--purple); color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 8, 30, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.lightbox p { color: #fff; margin: 1rem 0 0; text-align: center; }
.lightbox button { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--purple) 0%, var(--purple-700) 60%, #2a5d96 140%); color: #fff; padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 520px) { .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- Servicii / produse ---------- */
.service-block { background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.service-block-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.service-block-head h2 { margin-bottom: .15em; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: .2em; }
.check-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; }
@media (max-width: 720px) { .check-list-2 { grid-template-columns: 1fr; } .service-block-head { flex-direction: column; align-items: flex-start; } }
.product-block { display: flex; flex-direction: column; }
.product-block .check-list { flex: 1; }
.product-block-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.product-block-head .card-icon { margin: 0; }
.product-block-head h2 { font-size: 1.3rem; margin: 0; }
.product-block .btn { align-self: flex-start; }
.note-box { display: flex; gap: .9rem; align-items: flex-start; background: var(--purple-50); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1.5rem; }
.note-box > .icon { color: var(--purple); width: 26px; height: 26px; }
.note-box p { margin: .25rem 0 .75rem; color: var(--muted); }
.note-box-accent { background: var(--orange-100); }
.note-box-accent > .icon { color: var(--orange-600); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.contact-card:hover { border-color: var(--purple); color: var(--text); transform: translateY(-2px); }
.contact-card .card-icon { margin: 0; }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card strong { font-size: 1.08rem; word-break: break-word; }

/* ---------- Formulare ---------- */
.form h1 { font-size: 1.75rem; }
.field { margin-bottom: 1.1rem; min-width: 0; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .7rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 3rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(74, 38, 132, .15); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface); color: var(--muted); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field-error { color: var(--red); font-size: .88rem; margin: .3rem 0 0; font-weight: 500; }
.hint { color: var(--muted); font-size: .88rem; margin: .3rem 0 0; }
.field-check .check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--purple); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-links { text-align: center; margin: 1rem 0 0; font-size: .95rem; }
.auth-wrap { max-width: 460px; }
.auth-wrap-wide { max-width: 640px; }
.dropzone {
  display: flex !important; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: 1.4rem 1rem; border: 2px dashed var(--purple-100); border-radius: var(--radius);
  background: var(--purple-50); color: var(--purple); cursor: pointer; font-weight: 500 !important;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--purple); }
.dropzone .icon { width: 30px; height: 30px; }
.dropzone-text { color: var(--muted); font-size: .9rem; }
.dropzone input { max-width: 100%; font-size: .9rem; }
.file-list { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.file-list li { padding: .15rem 0; }

/* ---------- Cont ---------- */
.account-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; box-shadow: inset 0 -1px 0 var(--border); }
.tabs { display: flex; gap: .25rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: .45rem; padding: .8rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--purple); }
.tab.is-active { color: var(--purple); border-bottom-color: var(--orange); }
.badge { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; align-items: center; justify-content: center; background: var(--orange); color: #241142; font-size: .78rem; font-weight: 800; }
.request-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.request-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.request-row.is-new { border-left: 4px solid var(--orange); }
.request-nr { font-weight: 800; color: var(--purple); min-width: 2.5rem; }
.request-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.request-main strong { overflow: hidden; text-overflow: ellipsis; }
.request-arrow { color: var(--muted); }
@media (max-width: 600px) {
  .request-row { flex-wrap: wrap; gap: .4rem .75rem; }
  .request-main { flex-basis: calc(100% - 3.5rem); }
  .request-arrow { display: none; }
  .request-row .status { margin-left: 3.25rem; }
}
.status { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--purple-50); color: var(--purple); }
.status-lg { font-size: .95rem; padding: .4rem 1rem; }
.status-new { background: var(--orange-100); color: #8a4d00; }
.status-in_progress { background: var(--blue-100); color: #0f4a75; }
.status-quoted { background: var(--purple-100); color: var(--purple); }
.status-accepted { background: var(--green-100); color: #145c37; }
.status-declined { background: var(--red-100); color: #8b241c; }
.status-closed { background: #eceaf0; color: var(--muted); }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .icon-xl { margin: 0 auto 1rem; }

.status-track { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.status-track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.status-track li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.status-track li:first-child::before { display: none; }
.status-track li.is-done::before, .status-track li.is-current::before { background: var(--purple); }
.status-track .dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 3px solid var(--border); font-weight: 800; }
.status-track .dot .icon { width: 18px; height: 18px; }
.status-track .is-done { color: var(--purple); }
.status-track .is-done .dot { background: var(--purple); border-color: var(--purple); color: #fff; }
.status-track .is-current { color: var(--purple-900); }
.status-track .is-current .dot { border-color: var(--orange); background: var(--orange); color: #241142; box-shadow: 0 0 0 5px var(--orange-100); }
.status-track .is-current.is-declined .dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 5px var(--red-100); }
@media (max-width: 520px) { .status-track { font-size: .78rem; } .status-track li { font-size: .74rem; } }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }
.totals div { flex-wrap: wrap; }
.meta-list { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0 0; }
.meta-list dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.meta-list dd { margin: 0; font-weight: 550; }
.attachments { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.attachment { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--text); padding: .4rem; border-radius: var(--radius-sm); }
.attachment:hover { background: var(--purple-50); color: var(--text); }
.attachment img, .attachment-icon { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.attachment-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--purple-50); color: var(--purple); }
.attachment-name { font-size: .9rem; word-break: break-word; display: flex; flex-direction: column; }
.attachment-name small { color: var(--muted); }

/* ---------- Deviz ---------- */
.quote-card { border-top: 4px solid var(--orange); }
.quote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.quote-head h2 { margin-bottom: .15em; }
.quote-head p { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.quote-table, .edit-table, .data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.quote-table th, .quote-table td, .data-table th, .data-table td { padding: .65rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.quote-table thead th, .edit-table thead th, .data-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface); }
.quote-table .num, .edit-table .num, .data-table .num { text-align: right; white-space: nowrap; }
.quote-table tfoot th { text-align: right; font-weight: 600; color: var(--muted); }
.quote-table tfoot td { font-weight: 600; }
.quote-table .total-row th, .quote-table .total-row td { font-size: 1.1rem; color: var(--purple-900); font-weight: 800; border-bottom: 0; }
.quote-notes { background: var(--surface); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 1rem 0; }
.quote-answer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.quote-answer textarea { margin-bottom: .75rem; }
@media (max-width: 640px) {
  .quote-table thead { display: none; }
  .quote-table, .quote-table tbody { display: block; width: 100%; }
  .quote-table tfoot { display: table; width: 100%; }
  .quote-table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .35rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
  .quote-table tbody td { border: 0; padding: 0; }
  .quote-table tbody td:first-child { display: none; }
  .quote-table tbody td:nth-child(2) { flex: 0 0 100%; font-weight: 600; margin-bottom: .2rem; }
  .quote-table tbody td:nth-child(3), .quote-table tbody td:nth-child(4), .quote-table tbody td:nth-child(5) { color: var(--muted); font-size: .9rem; text-align: left; }
  .quote-table tbody td:nth-child(4) { order: 1; }
  .quote-table tbody td:nth-child(3) { order: 2; }
  .quote-table tbody td:nth-child(5) { order: 3; }
  .quote-table tbody td:nth-child(5)::before { content: "× "; }
  .quote-table tbody td:nth-child(6) { order: 4; margin-left: auto; font-weight: 700; }
  .quote-table tfoot th { font-size: .9rem; }
}

.edit-table td { padding: .35rem .3rem; vertical-align: middle; border-bottom: 1px solid var(--border); }
.edit-table thead th { padding: .55rem .3rem; text-align: left; }
.edit-table select { min-width: 120px; padding: .55rem .5rem; }
.edit-table input { padding: .55rem .6rem; }
.edit-table td:nth-child(2) { min-width: 220px; }
.input-xs { width: 70px !important; }
.input-sm { width: 110px !important; }
input.num { text-align: right; }
.edit-table [data-line-total] { font-weight: 600; min-width: 90px; }
@media (max-width: 760px) {
  .edit-table thead { display: none; }
  .edit-table, .edit-table tbody, .edit-table tr { display: block; }
  .edit-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .75rem; margin-bottom: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
  .edit-table td { display: flex; flex-direction: column; gap: .2rem; border: 0; padding: 0; text-align: left !important; }
  .edit-table td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
  .edit-table td:nth-child(2) { grid-column: 1 / -1; min-width: 0; }
  .edit-table td:last-child::before { content: none; }
  .edit-table td:last-child { align-items: flex-end; justify-content: flex-end; }
  .input-xs, .input-sm { width: 100% !important; }
}
.totals { margin: 0; background: var(--purple-50); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .totals-main { font-size: 1.05rem; border-top: 1px solid var(--purple-100); margin-top: .35rem; padding-top: .35rem; }
.totals .totals-main dd { color: var(--purple-900); font-weight: 800; }

.data-table td { vertical-align: middle; }
@media (max-width: 760px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table tr { padding: .75rem 0; border-bottom: 1px solid var(--border); }
  .data-table td { border: 0; padding: .1rem 0; text-align: left !important; }
  .data-table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
}

.admin-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.admin-gallery li { padding: 0; overflow: hidden; }
.admin-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-gallery-body { padding: .75rem 1rem; }
.admin-gallery-body p { margin: .4rem 0; font-size: .92rem; }
.message.is-new { border-left: 4px solid var(--orange); }
.message-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.message-head form { display: inline; }

/* ---------- Text lung (confidențialitate) ---------- */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }

/* ---------- Subsol ---------- */
.site-footer { background: var(--purple-900); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 40px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; box-sizing: content-box; margin-bottom: 1rem; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .55rem; word-break: break-word; }
.footer-contact .icon { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Plata prin ordin de plată ---------- */
.pay-box { margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-left: 4px solid var(--purple); border-radius: var(--radius-sm); background: var(--surface); }
.pay-box h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.pay-box p { color: var(--muted); font-size: .92rem; margin-bottom: .75rem; }
.pay-box dl { margin: 0; display: grid; gap: .35rem; }
.pay-box dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; }
.pay-box dt { color: var(--muted); font-size: .9rem; }
.pay-box dd { margin: 0; font-weight: 600; word-break: break-word; }
.pay-box .iban { font-family: Consolas, "Cascadia Mono", monospace; letter-spacing: .03em; }
@media (max-width: 480px) { .pay-box dl div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Date firmă / contract ---------- */
[hidden] { display: none !important; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem .25rem; margin: .5rem 0 1.25rem; min-width: 0; }
.fieldset legend { font-weight: 700; color: var(--purple-900); padding: 0 .4rem; }
.fieldset > .hint { margin: 0 0 1rem; }
.label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.radio-row .check { display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; }
.field-span-2 { grid-column: span 2; }
@media (max-width: 640px) { .field-span-2 { grid-column: auto; } }
.article-edit { padding: 1rem 0; border-top: 1px solid var(--border); }
.article-edit:first-of-type { border-top: 0; padding-top: 0; }
.article-edit .field { margin-bottom: .5rem; }
textarea.has-todo { border-color: var(--orange); background: #fffaf2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
