.df-page {
  --df-red: #d3150c;
  --df-dark: #080b0f;
  --df-bg: #121414;
  --df-text: #e2e2e2;
  --df-secondary: #c4c6cc;
  --df-variant: #e7bdb6;
  --df-muted-dark: #44474d;
  --df-border: rgba(255, 255, 255, .1);
  overflow: hidden;
  color: var(--df-text);
  background: var(--df-bg);
  font-family: "Inter", sans-serif;
}

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

.df-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 128px));
  margin-inline: auto;
}

.df-hud-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(211, 21, 12, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(211, 21, 12, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.df-scanning-line {
  position: absolute;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--df-red), transparent);
  animation: dfTrainingScan 8s linear infinite;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.df-training-hero {
  position: relative;
  display: flex;
  min-height: 90vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 0 24px;
  background: var(--df-dark);
}

.df-training-hero .df-hud-grid { opacity: .3; }
.df-hero-content { text-align: center; }

.df-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px 12px;
  color: var(--df-red);
  background: rgba(211, 21, 12, .05);
  border: 1px solid rgba(211, 21, 12, .3);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.df-hero-badge .material-symbols-outlined { font-size: 14px; font-variation-settings: "FILL" 1; }

.df-training-hero h1 {
  max-width: 896px;
  margin: 0 auto 24px;
  color: var(--df-text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.df-training-hero h1 span,
.df-final-cta h2 span { color: var(--df-red); }

.df-training-hero .df-hero-content > p {
  max-width: 672px;
  margin: 0 auto 40px;
  color: var(--df-variant);
  font-size: 18px;
  line-height: 28px;
}

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

.df-btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid var(--df-red);
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter .2s ease, background .2s ease, transform .2s ease;
}

.df-btn:hover { transform: scale(.98); }
.df-btn-primary { color: #fff; background: var(--df-red); }
.df-btn-primary:hover { filter: brightness(1.1); }
.df-btn-outline { color: var(--df-red); background: transparent; }
.df-btn-outline:hover { background: rgba(211, 21, 12, .1); }
.df-btn .material-symbols-outlined { font-size: 24px; }

.df-system-status {
  position: absolute;
  bottom: 40px;
  left: 64px;
  color: rgba(211, 21, 12, .6);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .4;
}

.df-methodology { padding: 120px 0; color: var(--df-dark); background: #fff; }
.df-methodology-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.df-methodology article { padding: 16px 0 16px 32px; border-left: 1px solid rgba(8, 11, 15, .1); transition: border-color .2s ease; }
.df-methodology article:hover { border-color: var(--df-red); }
.df-methodology article > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(68, 71, 77, .1);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  transition: color .2s ease;
}
.df-methodology article:hover > span { color: rgba(211, 21, 12, .2); }
.df-methodology h2 { margin: 0 0 16px; color: var(--df-dark); font-family: "Hanken Grotesk", sans-serif; font-size: 32px; font-weight: 600; line-height: 40px; }
.df-methodology p { margin: 0; color: var(--df-muted-dark); font-size: 16px; line-height: 24px; }

.df-catalog { position: relative; padding: 120px 0; background: var(--df-bg); }
.df-catalog > .df-hud-grid { opacity: .1; }
.df-catalog-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.df-catalog-header div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--df-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.df-catalog-header h2 { margin: 0; color: var(--df-text); font-family: "Hanken Grotesk", sans-serif; font-size: 48px; font-weight: 600; line-height: 56px; }
.df-catalog-header h2 em { color: var(--df-red); font-style: normal; }
.df-catalog-header > p { margin: 0; color: var(--df-variant); font-family: "JetBrains Mono", monospace; font-size: 14px; line-height: 20px; text-transform: uppercase; }

.df-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.df-course-card {
  position: relative;
  display: flex;
  min-height: 355px;
  flex-direction: column;
  overflow: hidden;
  padding: 32px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--df-border);
  backdrop-filter: blur(12px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.df-course-card:hover { border-color: var(--df-red); box-shadow: 0 0 15px rgba(211, 21, 12, .2); }
.df-course-number { position: absolute; top: 16px; right: 16px; color: var(--df-variant); font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 16px; opacity: .2; }
.df-course-tag { align-self: flex-start; margin-bottom: 24px; padding: 4px 8px; color: var(--df-red); background: rgba(211, 21, 12, .1); font-family: "JetBrains Mono", monospace; font-size: 10px; line-height: 14px; letter-spacing: .1em; text-transform: uppercase; }
.df-course-card h3 { margin: 0 0 16px; color: var(--df-text); font-family: "Hanken Grotesk", sans-serif; font-size: 24px; font-weight: 600; line-height: 32px; transition: color .2s ease; }
.df-course-card:hover h3 { color: var(--df-red); }
.df-course-card > p { display: -webkit-box; overflow: hidden; margin: 0 0 32px; color: var(--df-variant); font-size: 16px; line-height: 24px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.df-course-card footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--df-border); }
.df-course-card footer > span, .df-course-card footer a { display: inline-flex; align-items: center; gap: 4px; font-family: "JetBrains Mono", monospace; }
.df-course-card footer > span { color: var(--df-variant); font-size: 14px; line-height: 20px; }
.df-course-card footer a { color: var(--df-red); font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.df-course-card footer .material-symbols-outlined { font-size: 16px; font-style: normal; }
.df-course-card footer a .material-symbols-outlined { font-size: 18px; transition: transform .2s ease; }
.df-course-card footer a:hover .material-symbols-outlined { transform: translateX(4px); }

.df-view-all { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 64px auto 0; padding: 0; color: var(--df-variant); background: transparent; border: 0; cursor: pointer; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.df-view-all:hover { color: var(--df-red); }

.df-course-explore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--df-red);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.df-course-explore .material-symbols-outlined {
  font-size: 18px;
  transition: transform .2s ease;
}

.df-course-explore:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.df-course-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.df-course-modal.is-open {
  display: flex;
}

.df-course-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(18px);
}

.df-course-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  max-height: min(86vh, 880px);
  overflow: hidden;
  background: #0c0f0f;
  border: 1px solid var(--df-border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.df-course-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--df-border);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.df-course-modal-body {
  max-height: min(86vh, 880px);
  overflow-y: auto;
  padding: clamp(32px, 5vw, 56px);
}

.df-course-modal-header {
  padding-right: 56px;
  margin-bottom: 32px;
}

.df-course-modal-header h2 {
  margin: 18px 0 16px;
  color: var(--df-text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
}

.df-course-modal-header p {
  max-width: 820px;
  margin: 0;
  color: var(--df-variant);
  font-size: 16px;
  line-height: 1.65;
}

.df-course-modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.df-course-modal-meta div {
  padding: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--df-border);
}

.df-course-modal-meta span,
.df-course-modal-meta strong {
  display: block;
}

.df-course-modal-meta span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .45);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.df-course-modal-meta strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.df-course-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--df-border);
}

.df-course-tab {
  flex: 0 0 auto;
  padding: 12px 16px;
  color: rgba(255, 255, 255, .55);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.df-course-tab.is-active {
  color: var(--df-red);
  border-bottom-color: var(--df-red);
}

.df-course-panel {
  display: none;
}

.df-course-panel.is-active {
  display: block;
}

.df-course-panel-section {
  margin-bottom: 28px;
}

.df-course-panel-section h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  line-height: 32px;
}

.df-course-panel-section p {
  color: var(--df-variant);
  line-height: 1.7;
}

.df-detail-list,
.df-agenda-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.df-detail-list li,
.df-agenda-item {
  position: relative;
  margin-bottom: 14px;
  padding-left: 24px;
  color: var(--df-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.df-detail-list li::before {
  position: absolute;
  left: 0;
  color: var(--df-red);
  content: "›";
}

.df-agenda-item {
  padding: 18px 18px 18px 132px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}

.df-agenda-item::before {
  content: none;
}

.df-agenda-item span {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 92px;
  color: var(--df-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.df-course-register {
  margin-top: 14px;
}

.df-final-cta { position: relative; overflow: hidden; color: var(--df-dark); background: #fff; border-top: 1px solid rgba(211, 21, 12, .1); }
.df-cta-shape { position: absolute; top: 0; right: -96px; width: 33.333%; height: 100%; background: var(--df-red); transform: skewX(12deg); }
.df-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 120px; padding-bottom: 120px; }
.df-final-inner > div { max-width: 672px; }
.df-final-cta h2 { margin: 0 0 24px; color: var(--df-dark); font-family: "Hanken Grotesk", sans-serif; font-size: 48px; font-weight: 600; line-height: 56px; }
.df-final-cta p { margin: 0; color: var(--df-muted-dark); font-size: 18px; line-height: 28px; }
.df-final-button { position: relative; z-index: 2; flex-shrink: 0; padding: 20px 40px; box-shadow: 0 20px 25px rgba(211, 21, 12, .2); }

@keyframes dfTrainingScan { 0% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: .1; } 100% { transform: translateY(100vh); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .df-scanning-line { animation: none; } }

@media (max-width: 1023px) {
  .df-shell { width: min(100% - 40px, 1280px); }
  .df-system-status, .df-cta-shape { display: none; }
  .df-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-final-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  .df-training-hero { min-height: 90vh; padding-top: 72px; }
  .df-training-hero h1 { font-size: 40px; line-height: 48px; letter-spacing: -.01em; }
  .df-methodology, .df-catalog { padding: 72px 0; }
  .df-methodology-grid, .df-course-grid { grid-template-columns: 1fr; }
  .df-catalog-header { align-items: flex-start; flex-direction: column; margin-bottom: 48px; }
  .df-catalog-header > p { display: none; }
  .df-catalog-header h2, .df-final-cta h2 { font-size: 40px; line-height: 48px; }
  .df-final-inner { padding-top: 72px; padding-bottom: 72px; }
  .df-final-button { width: 100%; }
  .df-course-modal { padding: 12px; }
  .df-course-modal-header { padding-right: 42px; }
  .df-agenda-item { padding: 56px 16px 16px; }
  .df-agenda-item span { width: auto; }
}

@media (max-width: 480px) {
  .df-hero-actions, .df-hero-actions .df-btn { width: 100%; }
  .df-course-card { min-height: 0; padding: 28px 24px; }
  .df-course-card footer { align-items: flex-start; flex-direction: column; }
}
