/* aplicabilai — design modern de produs.
   Fundal luminos, carduri rotunjite cu adâncime, accent indigo, iconuri pe meserii. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --fg: #0f1222;
  --muted: #5d6478;
  --line: #e6e8f0;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: #eef0ff;
  --accent-fg: #ffffff;
  --ok: #059669;
  --ok-soft: #e7f8f1;
  --warn-soft: #fff7e6;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 10px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.09);
  --radius: 16px;
  --radius-sm: 10px;
  --col: 1160px;
  --measure: 68ch;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d17; --bg-soft: #11142a; --surface: #151933; --fg: #eef0fb; --muted: #a3a9c2;
    --line: #262b4a; --accent: #8b85ff; --accent-2: #b48cff; --accent-soft: #1d2150; --accent-fg: #0b0d17;
    --ok: #34d399; --ok-soft: #0f2b24; --warn-soft: #2b2410;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d17; --bg-soft: #11142a; --surface: #151933; --fg: #eef0fb; --muted: #a3a9c2;
  --line: #262b4a; --accent: #8b85ff; --accent-2: #b48cff; --accent-soft: #1d2150; --accent-fg: #0b0d17;
  --ok: #34d399; --ok-soft: #0f2b24; --warn-soft: #2b2410;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body, html { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px;
}

/* ---------- Antet ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  max-width: none; margin: 0; padding: 12px max(20px, calc((100vw - var(--col)) / 2 + 20px));
  /* Fundal plin pe mobil. Efectul de blur (backdrop-filter) e doar pe desktop: pe mobil ar face
     meniul position:fixed să se poziționeze față de header, nu față de ecran, și meniul nu s-ar vedea. */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  header.site {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  }
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em;
  color: var(--fg); text-decoration: none; margin-right: auto;
}
.brand img { border-radius: 9px; }
.desktop-nav { display: none; gap: 4px; align-items: center; }
.desktop-nav a, .menu-links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding: 8px 14px; border-radius: 999px;
}
.desktop-nav a:hover, .menu-links a:hover { color: var(--fg); background: var(--bg-soft); }
.desktop-nav a[aria-current="page"], .menu-links a[aria-current="page"] {
  color: var(--accent); background: var(--accent-soft); font-weight: 600;
}
.menu { position: static; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--fg); background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { display: block; }
/* Meniul mobil deschis:
   - header-ul devine fix sus, ca logoul și butonul burger să fie mereu vizibile, oricât e derulată pagina;
   - panoul ocupă tot ecranul de la top: 0, sub logo și burger (care au z-index mai mare);
   - pagina din spate nu se derulează. Blocarea e pe <html>, nu pe <body>: pe <body>, împreună cu
     overflow-x: clip, ar crea un container de derulare separat și header-ul ar ieși din ecran. */
.menu[open] .menu-links {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--bg); padding: 76px 16px 24px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; z-index: 1;
}
header.site .brand, header.site .menu summary { position: relative; z-index: 2; }
html:has(.menu[open]) { overflow: hidden; }
header.site:has(.menu[open]) { position: fixed; top: 0; left: 0; right: 0; }
.menu-links a { font-size: 1.1rem; padding: 14px 16px; border-radius: 12px; color: var(--fg); }

/* ---------- Tipografie ---------- */
main { max-width: var(--col); margin: 0 auto; padding: 32px 20px 16px; }
h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.06;
  letter-spacing: -0.04em; font-weight: 800; margin: 0.2em 0 0.35em;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 0.4em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; margin: 1.2em 0 0.3em; }
p, li { font-size: 1rem; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 56ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 0.9rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.intro { margin-bottom: 8px; }
.crumbs { color: var(--muted); font-size: 0.9rem; margin: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.section { margin: 72px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.section-head p { margin: 0; max-width: 56ch; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--fg); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
:root[data-theme="dark"] .btn.primary { color: #fff; }
.btn.small { padding: 8px 14px; font-size: 0.92rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Hero ---------- */
.hero-wrap { position: relative; isolation: isolate; }
.hero-wrap::before {
  content: ""; position: absolute; z-index: -1; inset: -120px -40vw auto -40vw; height: 620px;
  background:
    radial-gradient(520px 300px at 70% 30%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    radial-gradient(520px 320px at 25% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero { display: grid; gap: 40px; align-items: center; padding: 20px 0 8px; max-width: none; }
.hero h1 { max-width: 15ch; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Demo: un prompt și răspunsul, ca într-o fereastră de chat */
.demo {
  margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 0.85rem; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.demo-bar span { margin-left: 6px; font-weight: 600; }
.demo-body { padding: 18px; display: grid; gap: 14px; }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; margin: 0; }
.msg.user { justify-self: end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai ul { margin: 6px 0 0; padding-left: 18px; }
.msg.ai li { font-size: 0.93rem; margin: 2px 0; }
.demo-note { font-size: 0.85rem; color: var(--muted); padding: 0 18px 16px; margin: 0; }

/* ---------- Meserii: grilă de carduri ---------- */
.meserii { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.meserie {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--radius); text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.meserie:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.meserie-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--accent-soft); margin-bottom: 6px;
}
.meserie-nume { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.meserie-desc { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.5; }
.meserie-stare { margin-top: auto; padding-top: 10px; font-size: 0.85rem; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.soon { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.meserie.urmeaza { background: var(--bg-soft); box-shadow: none; }
.meserie.urmeaza .meserie-icon { filter: grayscale(0.4); opacity: 0.8; }

/* ---------- Pași (chiar sunt o secvență) ---------- */
.steps { display: grid; gap: 14px; margin: 0; }
.step {
  padding: 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
}
.step span {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800;
}
.step h3 { margin: 14px 0 4px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Carduri generice ---------- */
.cards { display: grid; gap: 14px; margin-top: 16px; }
.card {
  display: block; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0 0 12px; font-size: 0.96rem; }
.cta { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card.in-pregatire { background: var(--bg-soft); box-shadow: none; }
.badge { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* ---------- Catalog cu filtre ---------- */
.filtre {
  display: grid; gap: 18px; margin: 26px 0 8px; padding: 20px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.filtru-titlu { font-weight: 700; margin: 0 0 10px; font-size: 0.92rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.95rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; font-weight: 600;
}
.chip .n { font-size: 0.78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.chip[aria-pressed="true"] .n { background: rgba(255,255,255,0.22); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.rezultate { margin-top: 22px; }
.rezultate .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.spec-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.gol { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Curs ---------- */
.course-layout { display: grid; gap: 28px; }
.sidebar { order: 2; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.course-main { order: 1; min-width: 0; }
.side-title { font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.side-title a { color: var(--fg); text-decoration: none; }
.side-module { margin-top: 16px; }
.side-mod-title { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.side-module ol { list-style: none; padding: 0; margin: 0; counter-reset: l; }
.side-module li { counter-increment: l; margin: 2px 0; font-size: 0.95rem; }
.side-module a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.side-module a::before { content: counter(l); flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.side-module a:hover { background: var(--surface); }
.side-module a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.side-module a[aria-current="page"]::before { background: var(--accent); border-color: var(--accent); color: #fff; }

.lesson h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); margin-top: 0.25em; }
.lesson p, .lesson li { font-size: 1.05rem; line-height: 1.72; max-width: var(--measure); }
.lesson h2 { font-size: 1.45rem; margin: 1.8em 0 0.5em; }
.lesson blockquote {
  margin: 1.4em 0; padding: 16px 18px; max-width: var(--measure);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 14px;
}
.lesson blockquote p { margin: 0; }
.module { margin-top: 26px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.module h2 { font-size: 1.3rem; margin: 0 0 8px; }
.lessons { padding-left: 20px; margin: 10px 0 0; }
.lessons li { margin: 10px 0; }
.lessons a { font-weight: 600; text-decoration: none; }
.lessons a:hover { text-decoration: underline; }
.pager { display: grid; gap: 12px; margin: 40px 0 16px; }
.pager a, .pager span {
  display: block; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pager a:hover { border-color: var(--accent); }
.pager a span { display: block; color: var(--accent); font-size: 0.85rem; font-weight: 700; background: none; border: 0; padding: 0; box-shadow: none; }
.pager-next { text-align: right; }

/* ---------- Prompturi, cod ---------- */
.prompt { padding: 20px; margin: 14px 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prompt h3 { margin: 0 0 8px; }
.prompt pre { margin: 10px 0; }
.copy-btn {
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 7px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
pre {
  background: var(--bg-soft); border: 1px solid var(--line); padding: 16px; border-radius: 12px;
  overflow-x: auto; white-space: pre-wrap; max-width: var(--measure); font-size: 0.93rem; line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; }

/* ---------- Unelte ---------- */
.tool { padding: 22px; margin: 18px 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; margin: 0 0 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; }
.avert { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent); }
.out { white-space: pre-wrap; overflow-wrap: anywhere; }
.tool fieldset.field { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 6px; }
.tool fieldset legend { font-weight: 600; font-size: 0.95rem; padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; accent-color: var(--accent); }
.corespondenta { margin: 14px 0 0; }
.corespondenta summary { cursor: pointer; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; margin: 10px 0 0; font-size: 0.93rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.faq h3 { margin: 1.3em 0 0.25em; font-size: 1.05rem; }
.faq p { margin: 0; color: var(--muted); }

/* ---------- Subsol ---------- */
.site-footer { margin: 88px 0 0; padding: 40px max(20px, calc((100vw - var(--col)) / 2 + 20px)) 28px; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; max-width: none; }
.footer-grid { display: grid; gap: 26px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-title { font-weight: 700; color: var(--fg); margin: 0 0 8px; }
.site-footer .copy { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; }

/* ---------- Consimțământ ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 520px; margin: 0 auto;
  padding: 18px; border-radius: 16px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.consent p { margin: 0 0 14px; font-size: 0.93rem; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent button { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.consent button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .desktop-nav { display: flex; }
  .menu { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-top: 40px; }
  .course-layout { grid-template-columns: 270px 1fr; gap: 48px; align-items: start; }
  .sidebar { order: 1; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .course-main { order: 2; }
  .pager { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .tool form:not(.stack) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .tool .field:nth-child(1), .tool .field:nth-child(7) { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  main { padding: 22px 16px 8px; }
  header.site { padding: 10px 16px; }
  .section { margin-top: 56px; }
  .site-footer { padding: 32px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Abonare ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.abonare {
  container-type: inline-size;
  margin: 40px 0 8px; padding: 26px;
  border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 10%, var(--bg-soft)));
}
.abonare h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); }
.abonare-text { margin-bottom: 18px; }
.abonare-text p { margin: 0; color: var(--muted); max-width: 60ch; }
.abonare-campuri { display: grid; gap: 10px; }
.abonare input[type="email"], .abonare select {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.abonare input[type="email"]:focus, .abonare select:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.abonare .btn { min-height: 48px; }
.abonare-acord { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 12px; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.abonare-acord input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.abonare-stare { margin: 10px 0 0; font-size: 0.95rem; font-weight: 600; min-height: 1.4em; }
.abonare-stare.ok { color: var(--ok); }
.abonare-stare.err { color: #dc2626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .abonare-stare.err { color: #f87171; } }
@container (min-width: 620px) {
  .abonare-campuri { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; }
}

/* Pager: locul gol al lecției anterioare (prima lecție) nu se desenează ca un card */
.pager > span:empty { visibility: hidden; padding: 0; border: 0; box-shadow: none; }

/* ---------- Politica de confidențialitate ---------- */
.politica .tabel { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 14px; }
.politica table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 640px; }
.politica th, .politica td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.politica th { background: var(--bg-soft); font-weight: 700; }
.politica tr:last-child td { border-bottom: 0; }
.politica h2 { scroll-margin-top: 90px; }
.link-btn { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid .link-btn { color: var(--muted); text-decoration: none; }
.footer-grid .link-btn:hover { color: var(--accent); }

/* ---------- blog ---------- */
.post-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.4em; }
.blog-list .post-meta { margin: 10px 0 0; display: block; }
.blog-list .badge { align-self: flex-start; margin-bottom: 8px; }
