/* Academy RS-CAM brand styles */

body {
  background: #F4F6F9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1A1A1A;
}

.module-card {
  transition: transform .15s ease;
  border-left: 4px solid #C9D5E3;
}
.module-card:hover { transform: translateY(-2px); }
.module-card--passed { border-left-color: #4F7A52; }
.module-card--read { border-left-color: #E86F1A; }
.module-card--unlocked { border-left-color: #1F2A44; }
.module-card--locked { opacity: 0.6; }

/* Раздельные заголовки секций «Модули» / «Кейсы» */
.section-title {
  color: #1F2A44;
  border-bottom: 2px solid #E86F1A;
  padding-bottom: 6px;
  display: inline-block;
}

/* Кейс-блоки — карточка с акцентом на оранжевый бренд */
.case-card {
  transition: transform .15s ease;
  border-left: 4px solid #E86F1A;
  position: relative;
}
.case-card--available:hover { transform: translateY(-2px); }
.case-card--locked {
  border-left-color: #C9D5E3;
  background: #FAFBFD;
}
.case-card--locked .card-body { opacity: 0.75; }

.case-card__teaser {
  background: #F4F6F9;
  border: 1px dashed #C9D5E3;
  border-radius: 4px;
  padding: 8px 10px;
  color: #6B7480;
  margin-bottom: 12px;
}
.case-card__lock-icon { margin-right: 4px; }

.module-content {
  font-size: 16px;
  line-height: 1.6;
}

/* Main section header (Heading 1 in Word) — "6. Какие задачи клиента мы решаем" */
.module-content h2 {
  font-size: 1.7em;
  font-weight: 700;
  color: #1F2A44;
  margin: 2.5em 0 .8em;
  padding: 14px 18px;
  background: linear-gradient(90deg, #F4F6F9 0%, #FFFFFF 100%);
  border-left: 6px solid #E86F1A;
  border-radius: 4px;
  line-height: 1.25;
}
/* Force orange number prefix to stay readable on the plate */
.module-content h2 span[style*="color:#E86F1A"],
.module-content h2 span[style*="color:#E67E22"] {
  color: #E86F1A !important;
  margin-right: .2em;
}

/* Sub-section header (Heading 2 in Word) — "6.1. Видеонаблюдение" */
.module-content h3 {
  font-size: 1.25em;
  font-weight: 700;
  color: #4F7A52;
  margin: 1.8em 0 .5em;
  padding-left: 0;
}

/* Sub-sub-section (Heading 3) */
.module-content h4 {
  font-size: 1.05em;
  font-weight: 700;
  color: #1F2A44;
  margin: 1.4em 0 .4em;
}

.module-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 0.96em;
}
.module-content table th { background: #1F2A44; color: white; padding: 10px; text-align: left; }
.module-content table td { padding: 9px 10px; border: 1px solid #D6DBE2; vertical-align: top; }
.module-content table tr:nth-child(even) td { background: #F4F6F9; }
.module-content .callout {
  border: 1px solid #C9D5E3;
  background: #F4F6F9;
  padding: 1em;
  margin: 1em 0;
  border-radius: 4px;
}

/* Step-card pattern: colored label + body (e.g. "15 сек | текст") */
.module-content .step-box {
  display: flex;
  align-items: stretch;
  margin: 14px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(31, 42, 68, .08);
  border: 1px solid #E1E5EC;
  background: #fff;
  --step-color: #1F2A44;
}
.module-content .step-box__label {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--step-color);
  color: #fff;
  font-size: 1.4em;
  font-weight: 700;
  padding: 18px 12px;
  line-height: 1.15;
}
.module-content .step-box__body {
  flex: 1 1 auto;
  padding: 14px 20px;
  background: #fff;
  font-size: 1em;
  line-height: 1.55;
}
.module-content .step-box__body p { margin: 0 0 .5em; }
.module-content .step-box__body p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .module-content .step-box { flex-direction: column; }
  .module-content .step-box__label { flex: 0 0 auto; padding: 10px; font-size: 1.1em; }
}
.module-content .callout--orange { background: #FBE3CC; border-color: #E86F1A; }
.module-content .callout--sage { background: #DCE7DC; border-color: #4F7A52; }
.module-content .callout--gold { background: #F4E7BD; border-color: #C99B2E; }
.module-content .callout--navy { background: #2D3B5A; border-color: #1F2A44; color: #fff; }

.module-content blockquote {
  border-left: 4px solid #E86F1A;
  background: #FBE3CC;
  padding: .5em 1em;
  margin: 1em 0;
  font-weight: 600;
  color: #1F2A44;
}

.btn:focus, .form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 .2rem rgba(232, 111, 26, .25);
  border-color: #E86F1A;
}
