/* Strategy Page Styles */

/* Стили для ссылок в разделе источников */
.sources-list {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.sources-list a {
  word-break: break-all;
  overflow-wrap: anywhere;
  hyphens: auto;
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.5);
  transition: all 0.2s ease;
}

.sources-list a:hover {
  color: #93c5fd;
  text-decoration-color: #93c5fd;
}

.sources-list ol {
  padding-left: 20px;
  margin: 0;
}

.sources-list li {
  margin-bottom: 12px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Показ вкладки "Карта области" — отменено скрытие */

.tab[href="../diagnostics/index.html"],
.tab[href="diagnostics/index.html"],
.sidebar-menu__link[href="../diagnostics/index.html"],
.sidebar-menu__link[href="diagnostics/index.html"],
.hide-diagnostics-tab {
  display: none !important;
}

/* Скрытие вкладок "Карта" и "Чат с ИИ" */
.tab[href="../index.html"],
.tab[href="index.html"],
.sidebar-menu__link[href="../index.html"],
.sidebar-menu__link[href="index.html"],
.tab[href="../chat/index.html"],
.tab[href="chat/index.html"],
.sidebar-menu__link[href="../chat/index.html"],
.sidebar-menu__link[href="chat/index.html"],
.hide-map-tab,
.hide-chat-tab {
  display: none !important;
}

/* Подсветка активной вкладки - правила в основном CSS файле */

/* Header правила теперь в основном CSS файле */

/* New simplified layout */
.strategy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  overflow-x: hidden;
  word-wrap: break-word;
}

.main-title {
  font-size: 32px;
  font-weight: 700;
  color: #cfe5ff;
  text-align: center;
  margin: 0 0 32px 0;
  line-height: 1.2;
}

.content-section {
  background: linear-gradient(180deg, #0f1928, #0e1826);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #cfe5ff;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.section-content {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  word-wrap: break-word;
}

.table-container {
  margin: 24px 0;
  overflow-x: auto;
}

.vulnerability-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
}

.vulnerability-table th,
.vulnerability-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vulnerability-table th {
  background: rgba(59, 130, 246, 0.1);
  color: #cfe5ff;
  font-weight: 600;
  font-size: 14px;
}

.vulnerability-table td {
  color: #e2e8f0;
  font-size: 14px;
}

.vulnerability-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-notes {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.table-notes h5 {
  color: #cfe5ff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.table-notes ul {
  margin: 0;
  padding-left: 20px;
}

.table-notes li {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Header */
/* Удален блок шапки стратегии: контент начинается сразу после фильтра */
/* Region filter */
.region-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}

.region-filter__label {
  font-size: 14px;
  color: #9db7d6;
}

.region-filter__select {
  background: #0c1c36;
  border: 1px solid #1d3a64;
  color: #cfe5ff;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  flex: 1;
  font-size: 14px;
}

.strategy-header__content {
  text-align: center;
}

.strategy-header__title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.strategy-header__subtitle {
  font-size: 16px;
  color: #9db7d6;
  margin: 0;
  line-height: 1.5;
}

/* Strategy Content */
.strategy-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Strategy Section */
.strategy-section {
  background: linear-gradient(180deg, #0f1928, #0e1826);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.strategy-section__header {
  margin-bottom: 20px;
  text-align: left;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  padding-bottom: 12px;
}

.strategy-section__title {
  font-size: 28px;
  font-weight: 700;
  color: #cfe5ff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.strategy-section__subtitle {
  font-size: 16px;
  color: #9db7d6;
  margin: 0;
  font-style: italic;
}

/* Strategy Text Content */
.strategy-text {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.7;
}

.strategy-text p {
  margin-bottom: 20px;
  text-align: justify;
}

.strategy-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: #cfe5ff;
  margin: 32px 0 16px 0;
  padding-left: 16px;
  border-left: 4px solid #3b82f6;
}

.strategy-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: #cfe5ff;
  margin: 24px 0 12px 0;
}

/* Key Findings */
.key-findings {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.key-findings h3 {
  color: #3b82f6;
  margin-top: 0;
  border: none;
  padding: 0;
}

.key-findings ul {
  margin: 16px 0;
  padding-left: 20px;
}

.key-findings li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Main Recommendations */
.main-recommendations {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.main-recommendations h3 {
  color: #10b981;
  margin-top: 0;
  border: none;
  padding: 0;
}

.main-recommendations ol {
  margin: 16px 0;
  padding-left: 20px;
}

.main-recommendations li {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Tables */
.indicators-table,
.medical-staff-table {
  margin: 24px 0;
  overflow-x: auto;
}

.indicators-table table,
.medical-staff-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
}

.indicators-table th,
.indicators-table td,
.medical-staff-table th,
.medical-staff-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.indicators-table th,
.medical-staff-table th {
  background: rgba(59, 130, 246, 0.1);
  color: #cfe5ff;
  font-weight: 600;
  font-size: 14px;
}

.indicators-table td,
.medical-staff-table td {
  color: #e2e8f0;
  font-size: 14px;
}

.indicators-table tr:hover,
.medical-staff-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.medical-staff-table h4 {
  color: #cfe5ff;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

/* Recommendations */
.recommendation {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid #f59e0b;
}

.recommendation h4 {
  color: #f59e0b;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.recommendation p {
  margin: 0;
  line-height: 1.6;
}

/* Sources */
.sources-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.sources-list ol {
  margin: 0;
  padding-left: 20px;
}

.sources-list li {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #e2e8f0;
}

.sources-list a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.sources-list a:hover {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

.sources-list a:visited {
  color: #8b5cf6;
  border-bottom-color: rgba(139, 92, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .strategy-container {
    padding: 16px;
  }
  
  .strategy-section {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .strategy-header__title {
    font-size: 24px;
  }
  
  .strategy-section__title {
    font-size: 24px;
  }
  
  .strategy-section {
    padding: 20px;
  }
  
  .strategy-text {
    font-size: 15px;
  }
  
  .indicators-table,
  .medical-staff-table {
    font-size: 13px;
  }
  
  .indicators-table th,
  .indicators-table td,
  .medical-staff-table th,
  .medical-staff-table td {
    padding: 8px 12px;
  }
  
  .sources-list {
    padding: 16px;
  }
  
  .sources-list li {
    margin-bottom: 12px;
    font-size: 14px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strategy-section {
  animation: fadeInUp 0.6s ease-out;
}
