:root {
  --bg: #202023;
  --bg-card: #2A2A2E;
  --bg-card-hover: #313136;
  --border: #3C3C41;
  --text: #EDEFE9;
  --text-muted: #9CA298;
  --accent: #58CA00;
  --accent-strong: #47A800;
  --accent-ink: #58CA00;
  --accent-soft: rgba(88, 202, 0, 0.14);
  --correct: #58CA00;
  --correct-soft: rgba(88, 202, 0, 0.14);
  --wrong: #E06B62;
  --wrong-soft: rgba(224, 107, 98, 0.14);
  --radius: 10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("math-pattern.svg");
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
  color: var(--text);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.brand-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb button {
  background: none;
  border: none;
  font: inherit;
  color: var(--accent-ink);
  cursor: pointer;
  padding: 0;
}

.breadcrumb span.sep { color: var(--border); }

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.screen-lead {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.pick-card {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pick-card:hover, .pick-card:focus-visible {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  outline: none;
}

.pick-card .pick-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
  color: var(--accent);
}

.pick-card .pick-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 4px;
}

.setup-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 32px;
}

.option-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}

.option-group legend {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 0;
}

.pill-choice {
  position: relative;
}

.pill-choice input {
  position: absolute;
  opacity: 0;
}

.pill-choice span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.pill-choice input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.switch-choice input[type="checkbox"],
.pill-choice input[type="radio"] {
  accent-color: var(--accent);
}

.switch-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
}

.count-badge {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn-primary, .btn-secondary {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #12210A;
}

.btn-primary:hover { background: var(--accent-strong); }

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--text-muted); }

.quiz-topbar {
  margin-bottom: 22px;
}

.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s ease;
}

.quiz-stats {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-correct strong { color: var(--accent-ink); }
.stat-wrong strong { color: var(--wrong); }

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.question-number {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 8px 0;
}

.question-text {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.question-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 18px 0;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-btn {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-btn .opt-marker {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  display: inline-block;
}

.option-btn[data-tip="simplu"] .opt-marker { border-radius: 50%; }
.option-btn[data-tip="multiplu"] .opt-marker { border-radius: 4px; }

.option-btn.is-selected .opt-marker {
  border-color: var(--accent);
  background: var(--accent);
}

.option-btn:hover:not(:disabled) { border-color: var(--accent); }

.option-btn:disabled { cursor: default; }

.option-btn.is-correct {
  background: var(--correct-soft);
  border-color: var(--correct);
}

.option-btn.is-wrong {
  background: var(--wrong-soft);
  border-color: var(--wrong);
}

.option-btn.is-missed {
  border-color: var(--correct);
  border-style: dashed;
}

.btn-verifica {
  display: block;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 4px;
}

.btn-verifica[hidden] { display: none; }

.explanation {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.results-summary {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 24px 0 32px;
}

.result-figure {
  display: flex;
  flex-direction: column;
}

.result-figure strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent-ink);
}

.result-figure span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.result-line {
  color: var(--text-muted);
}

.results-actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 560px) {
  .site-header { padding: 12px 14px; }
  .app { padding: 24px 16px 60px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 0.95rem; white-space: nowrap; }
  .brand-mark { width: 24px; height: 24px; }
  .breadcrumb { display: none; }
  .header-right { gap: 10px; }
  .screen-head { flex-direction: column; align-items: stretch; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
}

/* ===================== LOGIN ===================== */
.screen-login {
  max-width: 420px;
  margin: 6vh auto 0;
  text-align: center;
}

.login-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
}

.login-roles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.role-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.role-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--accent);
}

.role-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3px;
}

.login-form {
  margin-top: 8px;
  text-align: left;
}

.login-role-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 10px;
}

/* ===================== FORMULARE ===================== */
.text-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
}

select.text-input {
  appearance: none;
  cursor: pointer;
}

textarea.text-input {
  resize: vertical;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 18px 0 6px;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-error {
  color: var(--wrong);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.form-ok {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
}

.btn-link:hover { text-decoration: underline; }

/* ===================== HEADER ===================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

/* ===================== PANOU PROFESOR ===================== */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-box strong { color: var(--text); }

.info-box ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.info-box li { margin-bottom: 5px; }

.info-box code {
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.varianta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.varianta-row .v-corect {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.varianta-row .v-text {
  flex: 1;
  margin-bottom: 0;
}

.varianta-row .v-sterge {
  color: var(--text-muted);
  flex-shrink: 0;
}

.preview-wrap {
  margin-top: 10px;
}

.preview-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 6px;
}

/* ===================== IMAGINE ÎN ÎNTREBARE ===================== */
.question-image-wrap {
  margin: 0 0 16px;
}

.question-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* ===================== GESTIONARE ===================== */
.section-title {
  font-size: 1.05rem;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 8px;
}

.manage-name {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.manage-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--wrong);
  color: var(--wrong);
  border-radius: var(--radius);
  padding: 7px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-danger:hover:not(:disabled) {
  background: var(--wrong-soft);
}

.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.add-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
}

.add-row .text-input {
  flex: 1;
  margin-bottom: 0;
}

.add-row button { flex-shrink: 0; }

@media (max-width: 560px) {
  .add-row { flex-direction: column; }
  .add-row button { width: 100%; }
}

/* Cardul de testare pe materie */
.pick-card-highlight {
  border-color: var(--accent);
  background: var(--accent-soft);
  grid-column: 1 / -1;
}

.pick-card-highlight:hover {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
}

/* ==========================================================
   PAGINI DE PREZENTARE (acasă, cursuri, rezolvări, contact)
   ========================================================== */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 680px; }

/* ---- Header cu meniu ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
}

.brand { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #12210A;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none;
  white-space: nowrap;
}

.site-nav .nav-cta:hover {
  background: var(--accent-strong);
  color: #12210A;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
  padding: 84px 0 68px;
  text-align: center;
}

.hero h1 {
  font-size: 2.9rem;
  line-height: 1.12;
  margin-bottom: 18px;
}

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

.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  text-decoration: none;
  display: inline-block;
}

.page-head {
  padding: 60px 0 44px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 { font-size: 2.2rem; margin-bottom: 14px; }
.page-head .hero-lead { margin-left: 0; max-width: 680px; }

/* ---- Secțiuni ---- */
.section { padding: 68px 0; }

.section-alt {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 34px;
}

/* ---- Carduri de beneficii ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.feature-grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---- Ce oferim ---- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.offer-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 10px;
}

.offer-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0 0 16px;
}

.offer-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- Testimoniale ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
}

.testimonial p {
  margin: 0 0 16px;
  font-size: 0.97rem;
}

.testimonial footer strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial footer span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Cursuri ---- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.course-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.course-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0 0 18px;
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.course-price strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.course-price span { color: var(--text-muted); font-size: 0.9rem; }

.course-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.course-specs li {
  font-size: 0.92rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.course-specs li span {
  color: var(--text-muted);
  display: inline-block;
  min-width: 82px;
}

.course-includes-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.check-list li {
  font-size: 0.93rem;
  padding: 5px 0 5px 24px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.course-btn {
  margin-top: auto;
  text-align: center;
  text-decoration: none;
  display: block;
}

/* ---- Rezolvări ---- */
.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.solution-tags { display: flex; gap: 8px; margin-bottom: 16px; }

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tag-accent {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.solution-card h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.solution-card p { color: var(--text-muted); margin: 0 0 18px; }

.solution-subjects-title {
  font-size: 0.88rem;
  margin-bottom: 10px !important;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

.solution-btn { text-decoration: none; display: inline-block; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 10px;
}

.contact-value {
  display: block;
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

a.contact-value:hover { text-decoration: underline; }

.contact-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-card .field-label:first-child { margin-top: 0; }

.form-submit {
  width: 100%;
  margin-top: 22px;
}

.map-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

/* ---- Bandă CTA ---- */
.cta-band {
  background: var(--accent);
  color: #12210A;
  padding: 62px 0;
  text-align: center;
}

.cta-band h2 {
  color: #12210A;
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.cta-band p {
  color: #1F3510;
  margin: 0 0 26px;
  font-size: 1.03rem;
}

.cta-band .btn-primary {
  background: #12210A;
  color: var(--accent);
}

.cta-band .btn-primary:hover { background: #000; }

.cta-band .btn-secondary {
  border-color: #12210A;
  color: #12210A;
}

.cta-band .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: #12210A;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 52px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-brand { margin-bottom: 14px; }

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  max-width: 380px;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 9px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Mobil ---- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a.is-active { border-bottom-color: var(--border); }

  .site-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }

  .hero { padding: 54px 0 44px; }
  .hero h1 { font-size: 2.05rem; }
  .hero-lead { font-size: 1rem; }
  .section { padding: 48px 0; }
  .section-heading { font-size: 1.4rem; }
  .page-head h1 { font-size: 1.7rem; }
  .cta-band { padding: 48px 0; }
  .cta-band h2 { font-size: 1.5rem; }
  .wrap { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; text-align: center; }
}

/* ---- Iconiță Instagram din header ---- */
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .nav-icon {
    align-self: flex-start;
    margin-top: 4px;
  }
}

/* ---- Casetă evidențiată: Lecție de probă gratuită ---- */
.site-nav a.nav-highlight {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a.nav-highlight:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-nav a.nav-highlight.is-active {
  border-bottom: 1px solid var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  .site-nav a.nav-highlight {
    text-align: center;
    margin: 6px 0;
    border-bottom: 1px solid var(--accent);
  }
}

/* ---- Acțiuni pe rând, la editarea întrebărilor ---- */
.row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-mic {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.manage-row .manage-name {
  line-height: 1.35;
}

@media (max-width: 560px) {
  .manage-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .row-actions button { flex: 1; }
}

/* ===================== REZUMATUL TESTULUI ===================== */
.rezumat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}

.rezumat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rezumat-nr {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rezumat-stare {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.stare-corect { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.stare-partial { color: #E0A93F; border-color: #E0A93F; background: rgba(224, 169, 63, 0.13); }
.stare-gresit { color: var(--wrong); border-color: var(--wrong); background: var(--wrong-soft); }

.rezumat-intrebare {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 14px;
}

.rez-variante {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rez-varianta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 7px;
  font-size: 0.94rem;
}

.rez-varianta em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.rez-bun {
  background: var(--correct-soft);
  border-color: var(--correct);
}

.rez-bun em { color: var(--accent); }

.rez-ratat {
  border-color: var(--correct);
  border-style: dashed;
}

.rez-ratat em { color: var(--accent); }

.rez-rau {
  background: var(--wrong-soft);
  border-color: var(--wrong);
}

.rez-rau em { color: var(--wrong); }

.rezumat-explicatie {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.results-actions { flex-wrap: wrap; }

@media (max-width: 560px) {
  .results-actions { flex-direction: column; }
  .results-actions button { width: 100%; }
  .rez-varianta { flex-direction: column; align-items: flex-start; gap: 4px; }
}

.course-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 24px 0 0;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
