/* =========================================================
   LearnAI — learnai.ro
   Un singur fisier CSS, folosit de versiunea RO si EN.
   Fara JavaScript, fara dependinte externe.
   ========================================================= */

/* ---------- 1. Tokeni de tema ---------- */

:root {
  color-scheme: light;

  --bg:          #faf9f5;
  --bg-alt:      #f2f1ea;
  --surface:     #ffffff;
  --surface-2:   #f7f6f1;

  --ink:         #12211b;
  --ink-2:       #3c4b44;
  --muted:       #5c6b63;

  --line:        #dedcd2;
  --line-strong: #c6c4b8;
  /* contur pentru controale (butoane): minim 3:1 fata de fundal, WCAG 1.4.11 */
  --line-control: #7f8b84;

  --accent:      #0f5e45;
  --accent-ink:  #0b4735;
  --accent-soft: #e3efe9;
  --on-accent:   #ffffff;

  /* banda inchisa (sectiunea de training + CTA final) */
  --band:        #0e2a21;
  --band-2:      #123328;
  --band-ink:    #eaf2ee;
  --band-muted:  #a9c2b7;
  --band-line:   #27493c;
  --band-line-control: #638f7d;
  --band-accent: #7bd9ae;
  --on-band-accent: #06231a;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(18, 33, 27, .06);
  --shadow:    0 1px 2px rgba(18, 33, 27, .05), 0 10px 30px -20px rgba(18, 33, 27, .45);

  --wrap:  1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg:          #0b1210;
    --bg-alt:      #0e1714;
    --surface:     #111c18;
    --surface-2:   #16221d;

    --ink:         #e9efeb;
    --ink-2:       #c3d0c9;
    --muted:       #9db0a7;

    --line:        #22302a;
    --line-strong: #31423a;
    --line-control: #607a6f;

    --accent:      #67d6a5;
    --accent-ink:  #8ee3bd;
    --accent-soft: #10261e;
    --on-accent:   #06231a;

    --band:        #0d1c17;
    --band-2:      #10241d;
    --band-ink:    #e9efeb;
    --band-muted:  #9db0a7;
    --band-line:   #223a31;
    --band-accent: #67d6a5;
    --on-band-accent: #06231a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 1px 2px rgba(0, 0, 0, .35), 0 12px 34px -22px rgba(0, 0, 0, .9);
  }
}

/* ---------- 2. Reset & baze ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

svg { display: block; max-width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

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

/* ---------- 3. Layout ---------- */

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

.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.section--plain { border-top: 0; }
.section--alt { background: var(--bg-alt); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible {
  left: 0;
  outline-offset: -4px;
  color: var(--on-accent);
}

/* <main> primeste tabindex="-1" ca skip-link-ul sa mute efectiv focusul;
   este o zona de continut, nu un control, deci nu are nevoie de inel vizibil */
main[tabindex="-1"]:focus { outline: none; }

/* ---------- 4. Tipografie utilitara ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .num {
  color: var(--accent);
  font-weight: 700;
}

.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  max-width: 5rem;
}

h1, .h1 { font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.32rem); }

.lede {
  font-size: clamp(1.02rem, .98rem + .35vw, 1.18rem);
  color: var(--ink-2);
  max-width: 60ch;
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lede { margin-top: 1rem; }

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

.small {
  font-size: .875rem;
  line-height: 1.6;
}

.label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- 5. Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.5rem;
  padding-block: .85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }

.mark .m-bg  { fill: var(--accent); }
.mark .m-ink { fill: var(--on-accent); }
.mark .m-ink--soft { fill: var(--on-accent); opacity: .55; }

.nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.25rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .92rem;
  padding-block: .2rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lang {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .18rem .3rem;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: .12rem .5rem;
  border-radius: 999px;
}
.lang a:hover { color: var(--accent); }
.lang a[aria-current="true"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.lang span { color: var(--line-strong); }

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .header-inner { padding-block: 1rem; }
  .nav {
    order: 1;
    flex: 0 1 auto;
    padding-top: 0;
    border-top: 0;
    gap: 1.6rem;
    margin-right: 1.75rem;
  }
}

/* ---------- 6. Butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
}

.btn .icon { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-control);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn--onband {
  background: var(--band-accent);
  color: var(--on-band-accent);
  border-color: var(--band-accent);
}
.btn--onband:hover {
  background: transparent;
  color: var(--band-accent);
  border-color: var(--band-accent);
}

.btn--onband-ghost {
  background: transparent;
  color: var(--band-ink);
  border-color: var(--band-line-control);
}
.btn--onband-ghost:hover {
  border-color: var(--band-accent);
  color: var(--band-accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  color: var(--accent);
}
.link-arrow .icon { width: 16px; height: 16px; flex: none; transition: transform .18s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 7. Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, var(--line) 1px, transparent 1px),
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }
}

/* Peste 1120px, .wrap atinge latimea maxima, deci coloana de text nu mai creste
   odata cu fereastra: la 1.08fr ramanea la ~531px. Randul celor doua butoane din
   hero cere ~499px in engleza, dar ~562px in romana (text mai lung), asa ca
   acelasi rand incapea in EN si se rupea in RO. Cu 1.2fr coloana ajunge la
   ~590px si butoanele stau pe un rand in ambele limbi, cu marja pentru fonturi
   de sistem mai late. Sub 1120px comportamentul ramane neschimbat. */
@media (min-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  }
}

.hero h1 { margin-bottom: 1.15rem; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  box-shadow: inset 0 -0.32em 0 var(--accent-soft);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .lede { margin-bottom: 1.9rem; }

.hero-cta { margin-bottom: 1.6rem; }

.hero-note {
  font-size: .875rem;
  color: var(--muted);
  max-width: 44ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .34rem .75rem .34rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .82rem;
  color: var(--ink-2);
}
.chips .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* figura hero (SVG decorativ) */
.hero-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.syllabus { width: 100%; height: auto; }
.syllabus .s-card   { fill: var(--surface-2); stroke: var(--line); }
.syllabus .s-line   { stroke: var(--line-strong); }
.syllabus .s-bar    { fill: var(--line); }
.syllabus .s-bar-fill { fill: var(--accent); }
.syllabus .s-chip   { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: .35; }
.syllabus .s-num    { fill: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.syllabus .s-title  { fill: var(--ink); font-family: var(--font); font-size: 12.5px; font-weight: 600; }
.syllabus .s-meta   { fill: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; }
.syllabus .s-check  { stroke: var(--accent); }

/* ---------- 8. Carduri ---------- */

.grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: .6rem; }
.card > p { color: var(--ink-2); }
.card > p + p { margin-top: .7rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon .icon { width: 21px; height: 21px; }

/* card "pentru cine" */
.audience {
  position: relative;
  padding-top: clamp(1.5rem, 3vw, 2rem);
}
.audience::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.audience .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .55rem;
}

/* liste cu bifa */
.ticks {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: .6rem;
}
.ticks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  font-size: .95rem;
  color: var(--ink-2);
}
.ticks .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: .16rem;
}

.card-foot {
  margin-top: auto;
  padding-top: 1.4rem;
}

/* ---------- 9. Cursuri ---------- */

.course { position: relative; }

.course-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill--accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .pill--accent { color: var(--accent); }
}

.modules {
  list-style: none;
  counter-reset: mod;
  margin-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.modules li {
  counter-increment: mod;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: .5rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--ink-2);
}

.modules li::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  padding-top: .12rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  margin-top: 1.15rem;
  font-size: .85rem;
  color: var(--muted);
}
.course-meta > span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.course-meta .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }

.course--soon {
  background: var(--surface-2);
  border-style: dashed;
}

/* ---------- 10. Banda inchisa (training + CTA final) ---------- */

.band {
  background: var(--band);
  color: var(--band-ink);
  border-top: 1px solid var(--band-line);
  border-bottom: 1px solid var(--band-line);
  background-image: radial-gradient(
    120% 90% at 12% 0%,
    var(--band-2) 0%,
    var(--band) 62%
  );
}

.band .eyebrow { color: var(--band-muted); }
.band .eyebrow .num { color: var(--band-accent); }
.band .eyebrow::after { background: var(--band-line); }
.band .lede { color: var(--band-muted); }
.band h2, .band h3 { color: var(--band-ink); }
.band p a { color: var(--band-accent); }

/* pe fundal inchis, --accent (verde inchis in tema light) da 1.97:1 fata de
   --band; folosim accentul benzii ca sa trecem pragul de 3:1 (WCAG 1.4.11).
   Pentru .btn--onband, outline-offset: 3px aseaza inelul pe banda, nu pe
   fundalul mentei, deci regula acopera si acel caz. */
.band :focus-visible { outline-color: var(--band-accent); }

/* butoanele din banda isi pastreaza culorile proprii */
.band .btn--onband {
  background: var(--band-accent);
  color: var(--on-band-accent);
  border-color: var(--band-accent);
}
.band .btn--onband:hover {
  background: transparent;
  color: var(--band-accent);
  border-color: var(--band-accent);
}
.band .btn--onband-ghost {
  background: transparent;
  color: var(--band-ink);
  border-color: var(--band-line-control);
}
.band .btn--onband-ghost:hover {
  color: var(--band-accent);
  border-color: var(--band-accent);
}

.band-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 940px) {
  .band-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}

/* coloana din banda nu are wrapper .section-head, deci nu primeste
   `.section-head .lede { margin-top: 1rem }`; aceeasi valoare ca .cta-final h2 */
.band-grid h2 { margin-bottom: .85rem; }

.band-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.7rem);
}
.band-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.band-card p { color: var(--band-muted); font-size: .94rem; }

.band-list {
  list-style: none;
  display: grid;
  gap: .85rem;
}

.spec {
  display: grid;
  gap: .15rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--band-line);
}
.spec:first-child { border-top: 1px solid var(--band-line); }
.spec dt {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--band-accent);
}
.spec dd {
  margin: 0;
  color: var(--band-ink);
  font-size: .96rem;
}

.specs { margin: 0; }

/* ---------- 11. Resurse gratuite ---------- */

.resources-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 880px) {
  .resources-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

.res-list {
  list-style: none;
  display: grid;
  gap: .8rem;
}

.res-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
}
.res-item .card-icon { margin-bottom: 0; width: 42px; height: 42px; }
.res-item h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.res-item p { font-size: .91rem; color: var(--muted); }

.signup {
  align-self: start;
  position: sticky;
  top: 6rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.signup h3 { margin-bottom: .7rem; }
.signup p { color: var(--ink-2); font-size: .95rem; }
.signup .btn { width: 100%; margin-top: 1.3rem; }
.signup .small { margin-top: .9rem; color: var(--muted); }

@media (max-width: 879px) {
  .signup { position: static; }
}

/* ---------- 12. Metoda (pasi) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--accent);
  padding-top: 1.1rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .55rem;
  font-weight: 700;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.steps p { font-size: .93rem; color: var(--ink-2); }

/* ---------- 13. Intrebari frecvente ---------- */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 62rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem .25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: .42rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: .62rem;
}
.faq summary:hover { color: var(--accent); }

.faq .answer {
  padding: 0 .25rem 1.35rem;
  color: var(--ink-2);
  max-width: 68ch;
}
.faq .answer p + p { margin-top: .7rem; }

/* ---------- 14. CTA final ---------- */

.cta-final {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-final {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
}
.cta-final h2 { margin-bottom: .85rem; }

.contact-line {
  margin-top: 1.5rem;
  font-size: .93rem;
  color: var(--band-muted);
}
.contact-line a { font-weight: 600; }

/* ---------- 15. Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}

.footer-brand p {
  color: var(--muted);
  max-width: 38ch;
  margin-top: .8rem;
  font-size: .9rem;
}

.footer-col h2 {
  font-size: .74rem;
  font-family: var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .85rem;
}

.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 16. Utilitare ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { display: none; }

/* distante verticale folosite in HTML, ca sa nu existe atribute style inline
   (permite un CSP fara 'unsafe-inline' pe style-src) */
.mt-1 { margin-top: 1.15rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Pagina 404 — layout neutru, mosteneste culorile temei de pe body
   ========================================================================== */
.nf { min-height: 68vh; display: flex; flex-direction: column; align-items: center;
      justify-content: center; text-align: center; gap: 1rem; padding: 4rem 1.25rem; }
.nf-code { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin: 0; }
.nf h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin: 0; max-width: 20ch; }
.nf p { max-width: 48ch; margin: 0; }
.nf-en { opacity: .72; font-size: .9375rem; }
.nf-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: center; margin-top: 1.25rem; }
