/* ============================================================
   CHAPTER-1C.CSS — стили главы 18 «1С: архитектура и сервер»
   Переиспользует светлые incident-card / feature-card (как в гл.16).
   Плюс специфика: врезка «3 вопроса» (тёмная), карточки выбора
   сервера (процессор / память / диск) с приоритетами.
   compare-card берётся из chapter-base.css.
   ============================================================ */

/* ==================== СЕТКИ ==================== */
.incidents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.incidents-grid .incident-card.is-wide { grid-column: 1 / -1; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.features-grid .feature-card.is-wide { grid-column: 1 / -1; }

/* ==================== КАРТОЧКИ-ОШИБКИ (incident-card, светлая) ==================== */
.incident-card {
  background: #fff8f6;
  border: 1px solid #f3d6cf;
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.incident-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff5c4d 0%, #ff8a5c 100%);
}
.incident-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 24px;
  background: #c44a3a;
  color: #fff;
}
.incident-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--text-light);
}
.incident-card h3 em {
  font-style: normal;
  font-weight: 500;
  color: #c44a3a;
}
.incident-card .incident-symptom {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light-muted);
  margin: 0 0 20px;
}
.incident-card .incident-symptom strong { color: var(--text-light); font-weight: 600; }
.incident-card .incident-symptom:last-of-type { margin-bottom: 0; }
.incident-card .incident-resolution {
  border-top: 1px dashed #e9b8ad;
  padding-top: 16px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}
.incident-card .incident-resolution strong {
  color: #2d8a5f;
  font-weight: 600;
}

/* ==================== КАРТОЧКИ-РЕШЕНИЯ (feature-card, светлая) ==================== */
.feature-card {
  background: var(--bg-light-elevated, #fff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color .25s, transform .25s;
  position: relative;
}
.feature-card:hover {
  border-color: var(--border-light-hover);
  transform: translateY(-2px);
}
.feature-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(75, 63, 217, 0.08) 0%, rgba(151, 71, 255, 0.08) 100%);
  border: 1px solid rgba(75, 63, 217, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--indigo, #4b3fd9);
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
}
.feature-head-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
}
.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--indigo, #4b3fd9);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--text-light);
}
.feature-card h3 em {
  font-style: normal;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light-muted);
  margin: 0;
}
.feature-card p + p { margin-top: 12px; }
.feature-card p strong { color: var(--text-light); font-weight: 600; }
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.feature-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--border-light-hover);
  border-radius: 100px;
  color: var(--text-light-muted);
}

/* ==================== КАРТОЧКИ-ПЛАТФОРМЫ (на чём поднимать файловый сервер) ==================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: var(--bg-light-elevated, #fff);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}
.platform-card.is-pick {
  border-color: rgba(75, 63, 217, 0.4);
  box-shadow: 0 8px 30px rgba(75, 63, 217, 0.1);
}
.platform-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light-muted);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 4px 12px;
}
.platform-tag.is-pick {
  color: #fff;
  background: var(--gradient);
  border: none;
}
.platform-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-light);
}
.platform-card.is-pick .platform-name { color: var(--indigo, #4b3fd9); }
.platform-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light-muted);
}
.platform-body strong { color: var(--text-light); font-weight: 600; }
@media (max-width: 860px) {
  .platform-grid { grid-template-columns: 1fr; }
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 820px) {
  .incidents-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .incidents-grid .incident-card.is-wide,
  .features-grid .feature-card.is-wide { grid-column: auto; }
  .incident-card { padding: 28px 24px; }
  .feature-card { padding: 28px 24px; }
  .feature-head { gap: 14px; margin-bottom: 18px; }
  .feature-icon { width: 56px; height: 56px; }
  .feature-head-text { min-height: 56px; }
  .feature-card h3, .incident-card h3 { font-size: 19px; }
}


/* ==================== ВРЕЗКА «3 ВОПРОСА» (тёмная секция) ==================== */
.q3-callout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.q3-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q3-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.q3-q {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
}
.q3-desc { font-size: 14px; line-height: 1.6; color: var(--text-dark); }
.q3-desc strong { color: #fff; font-weight: 600; }
@media (max-width: 820px) { .q3-callout { grid-template-columns: 1fr; gap: 14px; } }

/* ==================== КАРТОЧКИ ВЫБОРА СЕРВЕРА (приоритеты) ==================== */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.srv-card {
  background: var(--bg-light-elevated, #fff);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.srv-card.is-top { border-color: rgba(75,63,217,0.4); box-shadow: 0 8px 30px rgba(75,63,217,0.1); }
.srv-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo, #4b3fd9);
}
.srv-head { display: flex; align-items: center; gap: 14px; }
.srv-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(75,63,217,0.08), rgba(151,71,255,0.08));
  border: 1px solid rgba(75,63,217,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo, #4b3fd9); flex-shrink: 0;
}
.srv-icon svg { width: 26px; height: 26px; }
.srv-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-light);
}
.srv-body { font-size: 14px; line-height: 1.65; color: var(--text-light-muted); }
.srv-body strong { color: var(--text-light); font-weight: 600; }
.srv-note {
  margin-top: 4px;
  padding: 12px 14px;
  background: rgba(151,71,255,0.06);
  border-left: 3px solid #9747FF;
  border-radius: 6px;
  font-size: 13px; line-height: 1.55; color: var(--text-light);
}
.srv-note strong { font-weight: 600; }
@media (max-width: 860px) { .srv-grid { grid-template-columns: 1fr; } }

/* ==================== ЭКСПЛУАТАЦИЯ: карточки практик + чек-лист ==================== */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.ops-card {
  background: var(--bg-light-elevated, #fff);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ops-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ops-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(75,63,217,0.08), rgba(151,71,255,0.08));
  border: 1px solid rgba(75,63,217,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo, #4b3fd9); flex-shrink: 0;
}
.ops-icon svg { width: 24px; height: 24px; }
.ops-card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-light); line-height: 1.25;
}
.ops-card-body { font-size: 14px; line-height: 1.6; color: var(--text-light-muted); }
.ops-card-body strong { color: var(--text-light); font-weight: 600; }
@media (max-width: 760px) { .ops-grid { grid-template-columns: 1fr; } }

/* Чек-лист админа (тёмная секция) — 3 колонки по периодичности */
.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.check-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 24px 22px;
}
.check-col-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet-light, #b9adff);
  margin-bottom: 14px;
}
.check-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-col li {
  position: relative; padding-left: 24px;
  font-size: 14px; line-height: 1.5; color: var(--text-dark);
}
.check-col li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 12px; height: 7px;
  border-left: 2px solid #6ee7a8; border-bottom: 2px solid #6ee7a8;
  transform: rotate(-45deg);
}
@media (max-width: 820px) { .checklist { grid-template-columns: 1fr; } }

/* ==================== СЕКЦИЯ ПРАВИЛЬНЫХ НАСТРОЕК (tune) ==================== */
.tune-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.tune-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  background: var(--bg-light-elevated, #fff);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}
.tune-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(75,63,217,0.08), rgba(151,71,255,0.08));
  border: 1px solid rgba(75,63,217,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo, #4b3fd9); flex-shrink: 0;
}
.tune-icon svg { width: 24px; height: 24px; }
.tune-text { display: flex; flex-direction: column; gap: 5px; }
.tune-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-light); line-height: 1.3;
}
.tune-desc { font-size: 14px; line-height: 1.55; color: var(--text-light-muted); }
.tune-desc strong { color: var(--text-light); font-weight: 600; }
@media (max-width: 760px) { .tune-grid { grid-template-columns: 1fr; } }
