/* КНОПКА ДАЛЕЕ В БЛОГЕ */
  /* Стили для контейнера */
  .read-more-container {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
  }

  /* Стили для кнопки (заголовка) */
  details summary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff; /* Цвет фона кнопки */
    color: #ffffff;             /* Белый текст ссылки */
    cursor: pointer;
    border-radius: 5px;
    list-style: none;         /* Убираем стандартную стрелочку в Chrome/Firefox */
    margin-top: 10px;
    transition: background 0.3s;
  }

  /* Убираем стрелочку в Safari */
  details summary::-webkit-details-marker {
    display: none;
  }

  details summary:hover {
    background-color: #ffffff;
  }

  /* Текст, который раскрывается */
  .content {
    margin-top: 15px;
    padding: 10px;
    border-left: 3px solid #eee;
  }

  /* Смена текста кнопки при раскрытии (опционально) */
  details[open] summary {
    background-color: #ffffff;
  }

/* баннер в блог */
  .promo-block {
    margin: 30px 0;
    padding: 25px;
    border-left: 5px solid #007bff; /* Цвет можно поменять на ваш фирменный */
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: sans-serif;
  }
  .promo-block h4 {
    margin-top: 0;
    color: #333;
    font-size: 2.1rem;
  }
  .promo-block p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  .promo-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
  }
  .promo-btn:hover {
    background-color: #0056b3;
  }

  .lite-promo {
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
    border: 1px solid #cce5ff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
  }
  .lite-promo b {
    color: #004085;
    display: block;
    margin-bottom: 8px;
    font-size: 2.1rem;
  }
  .lite-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: 600;
  }
  .lite-link:hover {
    text-decoration: none;
  }

/* ==========================================
   Блок оглавления (Table of Contents)
   ========================================== */

.table-of-contents {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #2563eb;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Заголовок оглавления */
.table-of-contents h2 {
    font-size: 22px !important;       /* Крупный заголовок */
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-of-contents h2::before {
    content: "📋";
    font-size: 20px !important;
}

/* Убираем точки списка полностью */
.table-of-contents ul,
.table-of-contents ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.table-of-contents ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Ссылки — жестко в px, жирные и тёмные */
.table-of-contents a,
.table-of-contents a:visited {
    display: block !important;
    padding: 10px 14px !important;
    color: #111827 !important;         /* Практически чёрный цвет (максимальная читаемость) */
    text-decoration: none !important;
    font-size: 18px !important;        /* 18px (крупнее чем 16px основного текста) */
    font-weight: 600 !important;       /* Полужирный шрифт */
    line-height: 1.5 !important;
    border-radius: 6px !important;
    transition: all 0.15s ease-in-out;
}

/* При наведении */
.table-of-contents a:hover,
.table-of-contents a:focus,
.table-of-contents a.active {
    background-color: #dbeafe !important; /* Яркая плашка */
    color: #1e40af !important;            /* Синий цвет */
    padding-left: 20px !important;
}

/* Адаптив под мобильные */
@media (max-width: 640px) {
    .table-of-contents {
        padding: 16px 18px;
    }

    .table-of-contents h2 {
        font-size: 19px !important;
    }

    .table-of-contents a,
    .table-of-contents a:visited {
        font-size: 16px !important;    /* На мобильных 16px вровень с текстом */
        padding: 8px 10px !important;
    }
}



/* Контейнеры карточек блога */
.checklist-cards-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 35px 0;
    box-sizing: border-box;
}

.checklist-cards-title {
    text-align: center;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 20px 0 !important;
}

/* Сетка 2х2 */
.checklist-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Отдельная карточка */
.checklist-card {
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Зелёный кружок с галочкой */
.checklist-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* Текст карточки */
.checklist-card-content h4 {
    margin: 0 0 4px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.checklist-card-content p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.3 !important;
}

/* Подпись */
.checklist-cards-caption {
    text-align: center;
    font-size: 13px !important;
    color: #64748b !important;
    font-style: italic;
    margin: 16px 0 0 0 !important;
}
/* Дополнительные стили для иконок номеров и акцентов */
.checklist-card-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: #0284c7; /* Акцентный синий */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.checklist-card-icon.blue {
    background-color: #3b82f6;
}


/* Адаптив для смартфонов (в 1 колонку) */
@media (max-width: 640px) {
    .checklist-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-cards-container {
        padding: 18px 16px;
    }
}

/* ==========================================
   Типографика заголовков для блога (H2 - H6)
   с отступом слева на 7-10 символов
   ========================================== */

/* Общие базовые стили для всех заголовков статьи */
.article-section h2,
.article-section h3,
.article-section h4,
.article-section h5,
.article-section h6 {
    color: #0f172a;               /* Глубокий тёмно-угольный цвет */
    font-weight: 700;
    line-height: 1.3 !important;   /* Плотный, аккуратный межстрочный интервал */
    margin-top: 40px !important;    /* Увеличенный отступ сверху */
    margin-bottom: 16px !important; /* Отступ снизу к тексту */
    letter-spacing: -0.02em;
    text-align: left !important;   /* Выравнивание по левому краю */
    margin-left: 8ch !important;    /* Сдвиг вправо примерно на 8 символов */
}

/* Первому заголовку в секции не нужен большой отступ сверху */
.article-section > h2:first-child,
.article-section > h3:first-child {
    margin-top: 10px !important;
}

/* --- H2: Акцентная синяя полоса СЛЕВА --- */
.article-section h2 {
    font-size: 26px !important;
    padding-left: 14px !important;       /* Отступ текста от полосы */
    border-left: 5px solid #2563eb;      /* Вертикальная синяя полоса */
    border-bottom: none !important;
}

/* --- H3: Подразделы --- */
.article-section h3 {
    font-size: 21px !important;
    border-left: none !important;
}

/* --- H4: Вложенные подпункты --- */
.article-section h4 {
    font-size: 18px !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* --- H5: Мелкие структурные блоки --- */
.article-section h5 {
    font-size: 16px !important;
    color: #334155 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- H6: Примечания и подписи --- */
.article-section h6 {
    font-size: 14px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-style: italic;
}

/* ==========================================
   Адаптивность для мобильных экранов
   ========================================== */

@media (max-width: 640px) {
    .article-section h2,
    .article-section h3,
    .article-section h4,
    .article-section h5,
    .article-section h6 {
        margin-top: 28px !important;
        margin-bottom: 12px !important;
        margin-left: 0 !important;       /* На мобильных сбрасываем отступ, чтобы не съедать полезный экран */
    }

    .article-section h2 {
        font-size: 21px !important;
        padding-left: 10px !important;
        border-left-width: 4px;
    }

    .article-section h3 {
        font-size: 18px !important;
    }

    .article-section h4 {
        font-size: 16px !important;
    }

    .article-section h5 {
        font-size: 14px !important;
    }

    .article-section h6 {
        font-size: 13px !important;
    }
}


/* ==========================================
   Блок FAQ в конце статьи
   ========================================== */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.faq-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* Вопрос — сбрасываем стандартные стили H3 */
.faq-question {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Ответ */
.faq-answer p {
    font-size: 16px !important;
    color: #334155 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
