/* ==================================================================
   CM DESIGN SYSTEM — контентные секции, таблицы, хлебные крошки
   Фирменные правила (единый источник истины для всех страниц):
   • Шрифт: Montserrat (задан в настройках проекта: headings 700)
   • Заголовок H2: 40px desktop / 25px mobile, 700, в мобилке по центру
   • Заголовок H3: 24px desktop / 19px mobile, 700
   • Описание, списки: 20px, 400
   • Таблицы: зебра (светло-серая заливка через строку) + анимация ховера
   ================================================================== */

.cmseo {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px;
  box-sizing: border-box;
  font-family: Montserrat, Arial, sans-serif;
  color: #1a1a1a;
}
.cmseo *, .cmseo *::before, .cmseo *::after { box-sizing: border-box; }

/* ---------- Заголовки ---------- */
.cmseo h2 {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 40px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 40px 0 16px !important;
  letter-spacing: -0.01em;
}
.cmseo h2:first-child { margin-top: 0 !important; }
.cmseo h3 {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 28px 0 10px !important;
}

/* ---------- Описание ---------- */
.cmseo p {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  margin: 0 0 20px !important;
}
.cmseo ul, .cmseo ol { margin: 0 0 24px !important; padding-left: 26px !important; }
.cmseo li {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  margin: 0 0 10px !important;
}
.cmseo a { color: #0091c2; text-decoration: none; border-bottom: 1px solid rgba(0,145,194,.3); transition: color .2s ease, border-color .2s ease; }
.cmseo a:hover { color: #0079a3; border-bottom-color: rgba(0,121,163,.7); }
.cmseo strong { font-weight: 700; }

/* ---------- Answer-блок (короткий ответ для AI-выдачи) ---------- */
.cmseo .answer { background: #f2fafd; border-left: 3px solid #00aeef; padding: 20px 22px; margin: 0 0 28px; border-radius: 10px; }
.cmseo .answer p { margin: 0 !important; }

/* ---------- CTA-блок ---------- */
.cmseo .cm-cta { margin: 30px 0 0; padding: 22px 24px; border: 1px solid #e3eef4; border-radius: 12px; background: #fbfdfe; }
.cmseo .cm-cta p { margin: 0 0 8px !important; }
.cmseo .cm-cta p:last-child { margin-bottom: 0 !important; }
.cmseo .cm-cta a { font-weight: 600; }

/* ---------- Таблицы: зебра + анимация ховера ---------- */
.cmseo .cm-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 28px;
  border: 1px solid #e4ecf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(13,43,58,.06);
}
.cmseo table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 18px; font-family: Montserrat, Arial, sans-serif; }
.cmseo thead th {
  background: #eef4f8;
  color: #0d2b3a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid #dbe6ee;
  white-space: nowrap;
}
.cmseo tbody td { padding: 15px 18px; font-size: 18px; line-height: 1.45; color: #1f2a31; vertical-align: top; border-bottom: 1px solid #eef1f4; }
.cmseo tbody tr:last-child td { border-bottom: 0; }
.cmseo tbody tr:nth-child(odd) { background: #fff; }
.cmseo tbody tr:nth-child(even) { background: #f7f9fb; }
.cmseo tbody tr { transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.cmseo tbody tr:hover { background: #eaf6fc; }
.cmseo tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 #00aeef; }
.cmseo tbody tr:hover td { color: #063447; }
.cmseo td strong { font-weight: 700; }

/* ---------- Хлебные крошки (единый стиль на всех страницах) ---------- */
.cm-crumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #6b7a86;
}
.cm-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 !important; padding: 0 !important; }
.cm-crumbs li { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; font-size: 15px !important; line-height: 1.4; }
.cm-crumbs li + li::before { content: "/"; color: #b8c4cc; }
.cm-crumbs a { color: #5b6b76; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.cm-crumbs a:hover { color: #0091c2; border-bottom-color: rgba(0,145,194,.35); }
.cm-crumbs [aria-current="page"] { color: #111; font-weight: 600; }

/* нативные крошки стора скрываем, чтобы не дублировать */
.t-store__breadcrumbs, .t-store-breadcrumbs, .t-breadcrumbs { display: none !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .cmseo { padding: 44px 20px; }
  .cmseo h2 { font-size: 32px !important; }
  .cmseo h3 { font-size: 21px !important; }
}
@media (max-width: 640px) {
  .cmseo { padding: 34px 16px; }
  .cmseo h2 { font-size: 25px !important; line-height: 1.25 !important; text-align: center; }
  .cmseo h3 { font-size: 19px !important; }
  .cmseo p, .cmseo li { font-size: 18px !important; line-height: 1.55 !important; }
  .cmseo table { min-width: 480px; }
  .cmseo thead th { font-size: 15px; padding: 12px 14px; }
  .cmseo tbody td { font-size: 15px; padding: 11px 14px; }
  .cmseo .cm-table { border-radius: 10px; }
  .cm-crumbs { padding: 14px 16px 0; font-size: 13px; }
  .cm-crumbs li { font-size: 13px !important; }
}

/* ==================================================================
   Плавное появление tooltip-меню (существующая логика проекта)
   ================================================================== */
.t966__tooltip-menu { opacity: 0 !important; transform: translateY(-10px) !important; transition: opacity .35s ease, transform .35s ease !important; }
.t966__tooltip-menu_show { opacity: 1 !important; transform: translateY(0) !important; }
.t966__tooltip-menu_show .t966__menu-item { opacity: 0; animation: tooltipMenuIn .3s ease forwards; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(1) { animation-delay: .05s; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(2) { animation-delay: .1s; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(3) { animation-delay: .15s; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(4) { animation-delay: .2s; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(5) { animation-delay: .25s; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(6) { animation-delay: .3s; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(7) { animation-delay: .35s; }
.t966__tooltip-menu_show .t966__menu-item:nth-child(8) { animation-delay: .4s; }
@keyframes tooltipMenuIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.t966__tooltip-menu-corner { opacity: 0 !important; transition: opacity .3s ease !important; }
.t966__tooltip-menu_show .t966__tooltip-menu-corner { opacity: 1 !important; }