/* LEAPMOTOR.MD — stiluri */
:root {
  --black: #0d0d0f;
  --dark: #17181b;
  --grey-900: #2a2b2f;
  --grey-600: #6b6e75;
  --grey-300: #d4d6da;
  --grey-100: #f3f4f6;
  --white: #ffffff;
  --accent: #3fb6c9;           /* accent — ajustați după brandbook-ul Leapmotor */
  --radius: 4px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1280px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }

/* Imagini de fundal: culoarea de fallback apare cât timp lipsește fotografia */
.hero__slide, .model__img, .tech__img, .split__img, .mm__img {
  background-color: #c9ccd2; background-size: cover; background-position: center;
}
.hero__slide { background-color: #2b2e34; }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.8em; font: 500 .9rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: .2s; white-space: nowrap; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--grey-900); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--grey-100); }
.btn--outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: .7em 1.2em; font-size: .78rem; }
.btn--block { width: 100%; }

.badge { display: inline-block; padding: .35em .8em; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--black); border-radius: 2px; }
.badge--dark { background: var(--black); color: var(--white); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.1rem; color: var(--grey-600); max-width: 640px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: #c7c9ce; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 1rem; }
.topbar strong { color: var(--white); font-weight: 500; }
.topbar__right { display: flex; gap: 1.5rem; align-items: center; }
.topbar a:hover { color: var(--white); }
.lang { display: flex; gap: .6rem; }
.lang a { opacity: .6; } .lang a.is-active { opacity: 1; color: var(--white); font-weight: 600; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: .2s; }
.header.is-scrolled { border-bottom-color: var(--grey-300); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo__mark { font-weight: 700; font-size: 1.35rem; letter-spacing: .28em; }
.logo__mark--light { color: var(--white); display: inline-block; margin-bottom: 1rem; }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; font-weight: 500; }
.nav a:not(.btn) { position: relative; padding: .3em 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--black); transition: .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; padding: 4px; }
.burger span { display: block; height: 2px; background: var(--black); margin: 5px 0; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100vh - var(--header-h) - 36px); min-height: 560px; max-height: 900px; overflow: hidden; color: var(--white); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: flex-end; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.05) 100%); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__content { position: relative; padding-bottom: 110px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 600; margin: .3em 0 .1em; letter-spacing: -.02em; }
.hero__tagline { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; max-width: 560px; }
.hero__price { font-size: 1.1rem; font-weight: 500; }
.hero__price small, .model__price small { font-weight: 400; opacity: .7; font-size: .75em; }
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__dots { position: absolute; z-index: 2; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { width: 40px; height: 3px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero__dots button.is-active { background: var(--white); }

/* ---------- Secțiuni ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--grey { background: var(--grey-100); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { margin-bottom: 3rem; }
.section__head--light .lead { color: #a9acb3; }

/* Filtre */
.filters { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter { padding: .6em 1.3em; background: transparent; border: 1px solid var(--grey-300); border-radius: 100px; font: 500 .88rem var(--font); cursor: pointer; transition: .2s; }
.filter.is-active, .filter:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Modele */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.model { background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.model:hover { box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.model__img { position: relative; aspect-ratio: 16 / 10; }
.model__img .badge { position: absolute; top: 14px; left: 14px; }
.model__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.model__body h3 { font-size: 1.6rem; margin-bottom: .15em; }
.model__seg { font-size: .85rem; color: var(--grey-600); margin-bottom: .8em; }
.model__tag { flex: 1; }
.model__price { font-weight: 600; font-size: 1.05rem; }
.model__btns { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Statistici */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { border-top: 1px solid var(--grey-900); padding-top: 1.5rem; }
.stat__num { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: -.02em; }
.stat__label { color: #a9acb3; font-size: .92rem; }

/* Tehnologii */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tech__img { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 1.2rem; }
.tech__card p { color: var(--grey-600); font-size: .95rem; }

/* Split */
.section--split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 560px; }
.section--split-rev .split__img { order: 2; }
.split__img { min-height: 360px; }
.split__text { padding: clamp(48px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.split__text > p { color: var(--grey-600); max-width: 520px; }
.split__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0 2rem; }
.split__list p { color: var(--grey-600); font-size: .92rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.checks li { padding-left: 1.8em; position: relative; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Servicii */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { background: var(--white); padding: 32px; border-radius: var(--radius); }
.service svg { width: 40px; height: 40px; fill: none; stroke: var(--black); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 1.2rem; }
.service p { color: var(--grey-600); font-size: .95rem; margin: 0; }

/* Formular */
.tabs { display: flex; border-bottom: 1px solid var(--grey-900); margin-bottom: 2rem; }
.tab { flex: 1; background: none; border: 0; color: #a9acb3; padding: 1em; font: 500 1rem var(--font); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--white); border-bottom-color: var(--white); }
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__row--td { display: none; }
.form.is-td .form__row--td { display: grid; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: #c7c9ce; }
.form input, .form select, .form textarea { font: 400 1rem var(--font); padding: .85em 1em; background: var(--dark); color: var(--white); border: 1px solid var(--grey-900); border-radius: var(--radius); outline: none; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--white); }
.form.was-validated :invalid { border-color: #e5484d; }
.form input[type="date"] { color-scheme: dark; }
.form .check { flex-direction: row; align-items: flex-start; gap: .7rem; font-size: .85rem; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--white); flex-shrink: 0; }
.form .check a { text-decoration: underline; }
.form__msg { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form__msg.is-ok { color: #6fd39b; } .form__msg.is-error { color: #ff7a7f; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.contact__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact__list li { padding: .7em 0; border-bottom: 1px solid var(--grey-300); }
.contact__list a { text-decoration: underline; text-underline-offset: 3px; }
.contact__btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.contact__map { aspect-ratio: 4 / 3; background: var(--grey-100); border-radius: var(--radius); overflow: hidden; }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }

/* Footer */
.footer { background: var(--black); color: #a9acb3; padding: 80px 0 40px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--grey-900); }
.footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6em; }
.footer a:hover { color: var(--white); }
.footer__about { max-width: 340px; }
.social { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer__legal { padding-top: 2rem; font-size: .76rem; line-height: 1.6; color: #7d8088; }

/* Modale */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; background: var(--white); border-radius: var(--radius); width: min(640px, 100%); max-height: 90vh; overflow-y: auto; padding: 40px; transform: translateY(16px); transition: .25s; }
.modal.is-open .modal__box { transform: none; }
.modal__box--wide { width: min(1080px, 100%); padding: 0; }
.modal__close { position: absolute; top: 10px; right: 14px; z-index: 2; background: var(--white); border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mm { display: grid; grid-template-columns: 1.2fr 1fr; }
.mm__img { min-height: 460px; }
.mm__text { padding: 40px; }
.mm__text h2 { font-size: 2.4rem; margin: .4em 0 .1em; }

/* Cookie */
.cookie { position: fixed; z-index: 90; left: 24px; right: 24px; bottom: 24px; max-width: 720px; margin-inline: auto; background: var(--white); border: 1px solid var(--grey-300); box-shadow: 0 16px 40px rgba(0,0,0,.15); border-radius: var(--radius); padding: 18px 22px; display: none; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; } .cookie a { text-decoration: underline; }
.cookie div { display: flex; gap: .5rem; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tech, .services { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; top: calc(var(--header-h) + 36px); left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 1.4rem; font-size: 1.2rem; transform: translateX(100%); transition: transform .3s; }
  .header.is-scrolled .nav { top: var(--header-h); }
  .nav.is-open { transform: none; }
  .section--split, .contact, .mm { grid-template-columns: 1fr; }
  .section--split-rev .split__img { order: 0; }
  .mm__img { min-height: 260px; }
  .contact { gap: 2.5rem; }
}
@media (max-width: 600px) {
  .topbar__inner > span { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .models { grid-template-columns: 1fr; }
  .tech, .services, .stats, .form__row, .split__list, .footer__grid { grid-template-columns: 1fr; }
  .hero__content { padding-bottom: 90px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .mm__text { padding: 28px; }
}
