/* Статьи раздела /stati/. Вынесено из инлайн-<style> шаблона 163 один в один,
   чтобы вид совпадал с блоговой статьёй, но файлом — он кэшируется. */
.warehouse-checklist{
    max-width:1100px;
    margin:0 auto;
    font-family:Arial,sans-serif;
}
.page-content-main {
    margin-bottom: 20px;
}
.warehouse-checklist h2{
    margin-bottom:10px;
}
.page-content-block h3 {
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    margin-bottom: 20px;
}
.faq article {
    padding-bottom: 20px;
    margin-bottom: 0px;
    position: relative;
    border-bottom: 1px solid #ccc;
}
.page-content-block-faq {
    margin-bottom: 60px;
}
.intro{
    margin-bottom:20px;
}
.warehouse-checklist table{
    width:100%;
    border-collapse:collapse;
}
.warehouse-checklist th,
.warehouse-checklist td{
    border:1px solid #ddd;
    padding:12px;
}
.warehouse-checklist th{
    background:#f5f5f5;
}
.warehouse-checklist td:nth-child(1),
.warehouse-checklist td:nth-child(3),
.warehouse-checklist td:nth-child(4){
    text-align:center;
}
#result{
    display:none;
    margin-top:20px;
    padding:20px;
    border-radius:10px;
    font-size:18px;
    line-height:1.6;
}
.result-green{
    background:#e8f8ed;
    color:#146c2e;
}
.result-yellow{
    background:#fff7e0;
    color:#8a5a00;
}
.result-red{
    background:#ffe8e8;
    color:#b00020;
}
@media (max-width:768px){

    .warehouse-checklist table,
    .warehouse-checklist thead,
    .warehouse-checklist tbody,
    .warehouse-checklist tr,
    .warehouse-checklist td,
    .warehouse-checklist th{
        display:block;
    }

    .warehouse-checklist thead{
        display:none;
    }

    .warehouse-checklist tr{
        margin-bottom:15px;
        border:1px solid #ddd;
    }

    .warehouse-checklist td{
        border:none;
        border-bottom:1px solid #eee;
    }input[type="radio"] {
    cursor: pointer;
}

    .warehouse-checklist td:nth-child(1){
        font-weight:bold;
    }
}
@media (max-width:768px){

    .warehouse-checklist td:nth-child(3)::before{
        content:"Да";
        display:block;
        font-weight:bold;
        margin-bottom:5px;
    }

    .warehouse-checklist td:nth-child(4)::before{
        content:"Нет";
        display:block;
        font-weight:bold;
        margin-bottom:5px;
    }

}
blockquote {
    padding: 10px 0 0 30px;
    border-left: 13px solid #aa2a1c;
}
@media (max-width: 600px) {
    .calc_2_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .calc_2_risk-calculator {
        padding: 15px;
    }
    .calc_2_result-value {
        font-size: 22px;
    }
    .calc_2_year-loss .calc_2_result-value {
        font-size: 26px;
    }
}
:root {
  --safe-color: #16a34a;
  --danger-color: #dc2626;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
}
.wms-diagnostic-widget { 
  margin: 00px auto;
  font-family: sans-serif;
  color: var(--text-main);
  padding: 0 0px;
}
.diagnostic-section {
  margin-bottom: 48px;
}
.diagnostic-section h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.danger-section-wrapper h2 {
  color: #b91c1c;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.st_blog .page-content-block-faq table {
    margin-bottom: 40px;
}
.st_blog .page-content-block-faq h3 {
    margin: 5px 0 30px;
}
/* Сетка */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.open-popup{cursor:pointer;}
@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr; /* На десктопе карточки встанут в 2 колонки */
  }
}
/* Общие стили карточек */
.diagnostic-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.diagnostic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.checkbox-view {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}
.card-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
}
.card-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.4;
}
/* Специфика СЕЙФ-карточек (Зеленые) */
.safe-card:hover { border-color: #a3e635; }
.safe-card.active {
  border-color: var(--safe-color);
  background-color: #f0fdf4;
}
.safe-card.active .checkbox-view {
  background-color: var(--safe-color);
  border-color: var(--safe-color);
}
/* Специфика ДЕНДЖЕР-карточек (Красные) */
.danger-card:hover { border-color: #fca5a5; }
.danger-card.active {
  border-color: var(--danger-color);
  background-color: #fef2f2;
}
.danger-card.active .checkbox-view {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}
/* Общая галочка для обоих типов активных карт */
.diagnostic-card.active .checkbox-view::after {
  content: "✓";
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: bold;
}
/* БЛОК РЕЗУЛЬТАТА (Контейнер-переключатель) */
.verdict-wrapper {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  background: #f9fafb;
  border: 2px solid var(--border-color);
}
.verdict-state {
  padding: 28px;
  display: none; /* Скрыты по умолчанию */
  animation: fadeIn 0.4s ease forwards;
}
/* Управление отображением через JS классов */
.wms-diagnostic-widget.view-safe #state-safe-view { display: block; }
.wms-diagnostic-widget.view-danger #state-danger-view { display: block; }
/* Стилизация состояний вердикта */
.state-safe .verdict-header {
  color: var(--safe-color);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}
.state-danger {
  background: #fff5f5;
  border-left: 6px solid var(--danger-color);
}
.state-danger .verdict-header {
  color: var(--danger-color);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}
.verdict-alert-text {
  font-size: 16px;
  line-height: 1.5;
}
.risks-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 16px 0;
  border-left: 3px solid #fca5a5;
}
.final-quote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.cta-btn {
  background: var(--danger-color);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.cta-btn:hover { background: #b91c1c; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
  .st_5-grid {
    grid-template-columns: 1.2fr 1fr;
  }

    
}
strong {
    font-weight: 600;
}
:root {
        --color-a: #6c757d;
        --color-b: #0d6efd;
        --color-c: #6f42c1;
        --bg-hover: #f8f9fa;
    }
.progress-bar {
        height: 6px;
        background-color: #e9ecef;
        border-radius: 3px;
        margin-bottom: 25px;
        overflow: hidden;
    }
.progress-fill {
        height: 100%;
        background-color: var(--color-b);
        width: 0%;
        transition: width 0.3s ease;
    }
.question-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 20px;
        color: #212529;
    }
.options-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
.option-card {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 15px 20px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 15px;
    }
.option-card:hover {
        background-color: var(--bg-hover);
        border-color: #ced4da;
        transform: translateY(-1px);
    }
/* Иконки ○ / ● / ●● генерируем через CSS псевдоэлементы, чтобы не ломать БД и парсер */
    .marker {
        font-weight: bold;
        font-size: 1.2rem;
        min-width: 40px;
    }
.option-card[data-type="A"] .marker::before { content: "\25CB"; color: var(--color-a); }
.option-card[data-type="B"] .marker::before { content: "\25CF"; color: var(--color-b); }
.option-card[data-type="C"] .marker::before { content: "\25CF\25CF"; color: var(--color-c); }
.results-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }
.results-table th, .results-table td {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid #dee2e6;
    }
.results-table th {
        background-color: #f8f9fa;
        font-weight: 600;
    }
.results-table tr {
        transition: background-color 0.2s ease;
    }
.results-table tr:hover {
        background-color: #f1f3f5;
    }
.row-a { border-left: 4px solid var(--color-a); }
.row-b { border-left: 4px solid var(--color-b); }
.row-c { border-left: 4px solid var(--color-c); }
.winner-highlight {
        background-color: #e8f5e9 !important;
        font-weight: bold;
    }
.btn-restart {
        margin-top: 25px;
        background-color: #212529;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 500;
        width: 100%;
    }
.checklist-card{
    max-width:100%;
    margin:30px auto;
    background:#fff;
    border-radius:16px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    overflow:hidden;
    border:1px solid #e5e7eb;
}
.st_blog .page-content-block-faq .checklist-header h3 {
    margin: 0;
    padding: 0;
}
.checklist-header{
    background:#a13420;
    color:#fff;
    padding:20px 25px;
    display:flex;
    align-items:center;
    gap:12px;
}
.checklist-header h3{
    margin:0;
    font-size:26px;
}
.checklist-icon{
    font-size:32px;
}
.checklist-step{
    display:flex;
    gap:20px;
    padding:18px 25px;
    border-bottom:1px solid #eef2f7;
}
.step-number{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:50%;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}
.step-content strong{
    display:block;
    margin-bottom:5px;
    font-size:18px;
}
.step-content p{
    margin:0;
    color:#555;
}
.step-1 .step-number{background:#2563eb;}
.step-2 .step-number{background:#0ea5e9;}
.step-3 .step-number{background:#f59e0b;}
.step-4 .step-number{background:#10b981;}
.step-5 .step-number{background:#8b5cf6;}
.checklist-note{
    padding:18px 25px;
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    background:#f8fafc;
    font-weight:600;
}
.ok{color:#16a34a;}
.warning{color:#d97706;}
.error{color:#dc2626;}
@media(max-width:768px){
    .checklist-step{
        flex-direction:column;
        gap:10px;
    }

    .checklist-header h3{
        font-size:20px;
    }.faq article ol li {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    margin: 0 0 20px 30px;
    line-height: 24px;
    list-style: auto;
}
}
.hidden { display: none !important; }
.table-responsive{
    overflow-x:auto;
}
.page-content-block-faq p em {
    display: inline;
}
article img {
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Иконку-стрелку у строк списка «Другие статьи» Владимир просил убрать. */
.page-content-block-faq-question-text ul li:after { display: none; }
.page-content-block-faq-question-text ul li { padding-right: 14px; }
