/**
 * Premium-вводный текст тренажёра (EgeTaskTrainerIntro) на /task{N}/.
 * Scope: .neuroege-hf-trainer-intro__inner .hf-intro
 */

.neuroege-hf-trainer-intro--premium.neuroege-hf-trainer-intro--wysiwyg {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(22, 28, 38, 0.98) 0%,
    rgba(14, 18, 26, 0.96) 100%
  );
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.neuroege-hf-trainer-intro--premium.neuroege-hf-trainer-intro--wysiwyg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  opacity: 0.92;
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .neuroege-hf-trainer-intro--premium.neuroege-hf-trainer-intro--wysiwyg {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.neuroege-hf-trainer-intro--premium .neuroege-hf-trainer-intro__inner {
  padding: 1rem 1.15rem 1.1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .neuroege-hf-trainer-intro--premium .neuroege-hf-trainer-intro__inner {
  color: #1e293b;
}

/* --- Layout stack --- */
.neuroege-hf-trainer-intro__inner .hf-intro {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 100%;
  min-width: 0;
}

/* --- Hero --- */
.neuroege-hf-trainer-intro__inner .hf-intro__hero {
  margin: 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid rgba(52, 211, 153, 0.22);
}

.neuroege-hf-trainer-intro__inner .hf-intro__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.9);
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__eyebrow {
  color: #059669;
}

.neuroege-hf-trainer-intro__inner .hf-intro__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__title {
  color: #0f172a;
}

.neuroege-hf-trainer-intro__inner .hf-intro__lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__lead {
  color: #64748b;
}

/* --- Section cards --- */
.neuroege-hf-trainer-intro__inner .hf-intro__card {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__card {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.neuroege-hf-trainer-intro__inner .hf-intro__card-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__card-title {
  color: #059669;
}

.neuroege-hf-trainer-intro__inner .hf-intro__card--warn {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.neuroege-hf-trainer-intro__inner .hf-intro__card--warn .hf-intro__card-title {
  color: #fcd34d;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__card--warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.9);
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__card--warn .hf-intro__card-title {
  color: #b45309;
}

.neuroege-hf-trainer-intro__inner .hf-intro__card--tools .hf-intro__card-title {
  color: #5eead4;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__card--tools .hf-intro__card-title {
  color: #0d9488;
}

/* --- Lists --- */
.neuroege-hf-trainer-intro__inner .hf-intro__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  list-style: none;
}

.neuroege-hf-trainer-intro__inner .hf-intro__list li {
  position: relative;
  margin: 0.28rem 0;
  padding-left: 0.15rem;
  color: inherit;
}

.neuroege-hf-trainer-intro__inner .hf-intro__list li::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  opacity: 0.85;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__list li::before {
  background: #10b981;
}

.neuroege-hf-trainer-intro__inner .hf-intro__list li strong {
  font-weight: 600;
  color: #6ee7b7;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__list li strong {
  color: #047857;
}

/* --- Score table --- */
.neuroege-hf-trainer-intro__inner .hf-intro__score-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.35;
}

.neuroege-hf-trainer-intro__inner .hf-intro__score-table th,
.neuroege-hf-trainer-intro__inner .hf-intro__score-table td {
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: middle;
}

.neuroege-hf-trainer-intro__inner .hf-intro__score-table th {
  background: rgba(52, 211, 153, 0.14);
  color: rgba(240, 253, 244, 0.98);
  font-weight: 600;
}

.neuroege-hf-trainer-intro__inner .hf-intro__score-table td {
  background: rgba(15, 23, 42, 0.35);
  color: rgba(226, 232, 240, 0.95);
  font-variant-numeric: tabular-nums;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__score-table th,
[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__score-table td {
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__score-table th {
  background: rgba(5, 150, 105, 0.12);
  color: #1e293b;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro__score-table td {
  background: #f8fafc;
  color: #334155;
}

/* --- Inline code --- */
.neuroege-hf-trainer-intro__inner .hf-intro code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #a7f3d0;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro code {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.neuroege-hf-trainer-intro__inner .hf-intro pre {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  overflow-x: auto;
  font-size: 0.84em;
}

.neuroege-hf-trainer-intro__inner .hf-intro pre code {
  padding: 0;
  background: transparent;
  color: rgba(230, 235, 240, 0.95);
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro pre {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .neuroege-hf-trainer-intro__inner .hf-intro pre code {
  color: #1e293b;
}
