

/* Start:/local/templates/my_step/components/bitrix/news/blog/bitrix/news.detail/.default/style.css?177576370115007*/
/* ============================================================
   MY STEP — Article UI Kit v3
   Что изменено:
   - Облегчена типографика: меньше ощущение medium
   - Улучшены вертикальные отступы и ритм
   - Добавлен margin-bottom у таблиц
   - Карточки стали легче и чище
   - Добавлены отдельные стили для:
     1) карточек коллекций
     2) карточек "что выбрать"
     3) CTA-ссылок / псевдокнопок
   - Глобальные ссылки разделены на inline и action
   ============================================================ */

:root {
  --ms-text:          #1f1f22;
  --ms-text-soft:     #4f4f55;
  --ms-muted:         #6f6f76;

  --ms-bg:            #ffffff;
  --ms-bg-page:       #f5f5f7;
  --ms-bg-soft:       #fafafb;
  --ms-bg-accent-soft:#fff7f7;

  --ms-border:        rgba(0,0,0,0.06);
  --ms-border-soft:   rgba(0,0,0,0.04);
  --ms-shadow:        0 6px 24px rgba(0,0,0,0.035);

  --ms-accent:        #d92c2c;
  --ms-accent-dark:   #b91c1c;
  --ms-accent-soft:   #fff1f1;
  --ms-accent-soft-2: #fff6f6;
  --ms-accent-border: rgba(217,44,44,0.14);

  --ms-radius-xl:     32px;
  --ms-radius-lg:     26px;
  --ms-radius-md:     22px;
  --ms-radius-sm:     18px;
  --ms-radius-xs:     14px;
}

/* ─── Base ─────────────────────────────────────────────────── */

.ms-ui {
  padding: 64px 24px;
  background: linear-gradient(180deg, var(--ms-bg-page) 0%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--ms-text);
  line-height: 1.72;
}

.ms-ui .ms-container {
  max-width: 1160px;
  margin: 0 auto;
}

.ms-ui * {
  box-sizing: border-box;
}

/* ─── Typography ────────────────────────────────────────────── */

.ms-ui h1,
.ms-ui h2,
.ms-ui h3,
.ms-ui h4 {
  margin: 0 0 14px;
  color: var(--ms-text);
  letter-spacing: -0.03em;
}

.ms-ui h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  margin-bottom: 20px;
  font-weight: 700;
}

.ms-ui h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  margin-bottom: 18px;
  font-weight: 700;
}

.ms-ui h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.14;
  margin-bottom: 12px;
  font-weight: 500;
}

.ms-ui h4 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
  font-weight: 600;
}

.ms-ui p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.78;
  font-weight: 400;
  color: var(--ms-text-soft);
}

.ms-ui ul,
.ms-ui ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.ms-ui li {
  margin: 0 0 10px;
  color: var(--ms-text-soft);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

.ms-ui strong {
  color: var(--ms-text);
  font-weight: 600;
}

.ms-ui .ms-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ms-text-soft);
  font-weight: 400;
  margin-bottom: 22px;
}

/* ─── Inline links ──────────────────────────────────────────── */

.ms-ui a {
  text-decoration: none;
}

.ms-ui p a,
.ms-ui li a,
.ms-ui td a {
  color: var(--ms-accent);
  font-weight: 500;
  border-bottom: 1px solid rgba(217,44,44,0.22);
  transition: color .2s ease, border-color .2s ease;
}

.ms-ui p a:hover,
.ms-ui li a:hover,
.ms-ui td a:hover {
  color: var(--ms-accent-dark);
  border-bottom-color: rgba(217,44,44,0.44);
}

/* ─── Основные блоки ────────────────────────────────────────── */

.ms-ui .ms-card,
.ms-ui .ms-faq,
.ms-ui .ms-toc,
.ms-ui .ms-cta {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--ms-border-soft);
  border-radius: var(--ms-radius-lg);
  padding: 34px;
  margin-bottom: 28px;
  box-shadow: var(--ms-shadow);
}

.ms-ui .ms-hero {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ms-border-soft);
  border-radius: var(--ms-radius-xl);
  padding: 48px;
  margin-bottom: 28px;
  box-shadow: var(--ms-shadow);
}

/* ─── Вспомогательные элементы ──────────────────────────────── */

.ms-ui .ms-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(217,44,44,0.06);
  color: var(--ms-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.ms-ui .ms-highlight,
.ms-ui .ms-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--ms-bg-accent-soft);
  border: 1px solid var(--ms-accent-border);
  border-radius: var(--ms-radius-sm);
  color: var(--ms-text);
}

/* ─── Сетки ─────────────────────────────────────────────────── */

.ms-ui .ms-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.ms-ui .ms-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ─── Базовые карточки в сетке ──────────────────────────────── */

.ms-ui .ms-box {
  padding: 28px;
  background: var(--ms-bg-soft);
  border: 1px solid var(--ms-border-soft);
  border-radius: var(--ms-radius-md);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ms-ui .ms-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  border-color: var(--ms-accent-border);
}

.ms-ui .ms-box h3 {
  margin-bottom: 14px;
}

.ms-ui .ms-box p:last-child {
  margin-bottom: 0;
}

/* ─── TOC ───────────────────────────────────────────────────── */

.ms-ui .ms-toc h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.ms-ui .ms-toc ol {
  padding-left: 20px;
}

.ms-ui .ms-toc li {
  margin-bottom: 8px;
}

/* ─── FAQ ───────────────────────────────────────────────────── */

.ms-ui .ms-faq-item + .ms-faq-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(217,44,44,0.10);
}

/* ─── Link Grid ─────────────────────────────────────────────── */

.ms-ui .ms-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.ms-ui .ms-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: var(--ms-radius-md);
  background: #ffffff;
  border: 1px solid var(--ms-border-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ms-ui .ms-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  border-color: var(--ms-accent-border);
}

.ms-ui .ms-link-card h3 {
  margin-bottom: 10px;
}

.ms-ui .ms-link-card p {
  margin-bottom: 16px;
}

.ms-ui .ms-link-card .ms-cta-link {
  margin-top: auto;
}

/* ─── CTA ───────────────────────────────────────────────────── */

.ms-ui .ms-cta {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.ms-ui .ms-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.ms-ui .ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: var(--ms-radius-xs);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--ms-border);
  background: #ffffff;
  color: var(--ms-text);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ms-ui .ms-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ms-accent-border);
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.ms-ui .ms-btn-primary {
  background: var(--ms-accent);
  color: #ffffff;
  border-color: var(--ms-accent);
}

.ms-ui .ms-btn-primary:hover {
  background: var(--ms-accent-dark);
  border-color: var(--ms-accent-dark);
  color: #ffffff;
}

/* ─── CTA links / псевдокнопки ─────────────────────────────── */

.ms-ui .ms-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff6f6;
  border: 1px solid rgba(217,44,44,0.16);
  color: var(--ms-accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.ms-ui .ms-cta-link:hover {
  transform: translateY(-1px);
  background: #fff1f1;
  border-color: rgba(217,44,44,0.24);
  box-shadow: 0 8px 20px rgba(217,44,44,0.08);
  color: var(--ms-accent-dark);
}

/* ─── Таблицы ───────────────────────────────────────────────── */

.ms-ui .ms-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  margin-bottom: 36px;
  border-radius: 18px;
  border: 1px solid var(--ms-border);
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) center left,
    linear-gradient(to left,  #fff 30%, rgba(255,255,255,0)) center right,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.08), transparent) center left,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), transparent) center right;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

.ms-ui table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.ms-ui th,
.ms-ui td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--ms-border);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.55;
}

.ms-ui td {
  color: var(--ms-text-soft);
  font-weight: 400;
}

.ms-ui th {
  background: #fafafa;
  color: var(--ms-text);
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ms-ui tr:last-child td {
  border-bottom: none;
}

.ms-ui thead tr th:first-child  { border-radius: 18px 0 0 0; }
.ms-ui thead tr th:last-child   { border-radius: 0 18px 0 0; }
.ms-ui tbody tr:last-child td:first-child { border-radius: 0 0 0 18px; }
.ms-ui tbody tr:last-child td:last-child  { border-radius: 0 0 18px 0; }

/* ─── Специальный блок: карточки коллекций ─────────────────── */

.ms-ui .ms-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.ms-ui .ms-collection-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  height: 100%;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ms-ui .ms-collection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
  border-color: rgba(217,44,44,0.18);
}

.ms-ui .ms-collection-card h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
  font-weight: 500;
}

.ms-ui .ms-collection-card p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ms-text-soft);
}

.ms-ui .ms-collection-card .ms-cta-link {
  margin-top: auto;
}

/* ─── Специальный блок: "Что выбрать" ──────────────────────── */

.ms-ui .ms-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.ms-ui .ms-choice-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.ms-ui .ms-choice-card h3 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  font-weight: 500;
}

.ms-ui .ms-choice-card p {
  margin-bottom: 16px;
}

.ms-ui .ms-choice-note {
  margin-top: 18px;
  padding: 18px 20px;
  background: #fff7f7;
  border: 1px solid rgba(217,44,44,0.14);
  border-radius: 18px;
  color: var(--ms-text);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 500;
}

/* ─── Focus states ─────────────────────────────────────────── */

.ms-ui a:focus-visible,
.ms-ui .ms-btn:focus-visible,
.ms-ui .ms-link-card:focus-visible,
.ms-ui .ms-cta-link:focus-visible {
  outline: 2px solid var(--ms-accent);
  outline-offset: 3px;
}

/* ─── Адаптив ───────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .ms-ui .ms-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-ui .ms-collection-grid,
  .ms-ui .ms-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ms-ui {
    padding: 28px 14px;
  }

  .ms-ui .ms-hero,
  .ms-ui .ms-card,
  .ms-ui .ms-faq,
  .ms-ui .ms-toc,
  .ms-ui .ms-cta {
    padding: 24px;
    border-radius: 22px;
  }

  .ms-ui .ms-hero {
    padding: 28px 24px;
  }

  .ms-ui p,
  .ms-ui li {
    font-size: 15px;
    line-height: 1.72;
  }

  .ms-ui .ms-lead {
    font-size: 17px;
  }

  .ms-ui .ms-grid-2,
  .ms-ui .ms-grid-3,
  .ms-ui .ms-link-grid,
  .ms-ui .ms-collection-grid,
  .ms-ui .ms-choice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ms-ui .ms-box,
  .ms-ui .ms-link-card,
  .ms-ui .ms-collection-card,
  .ms-ui .ms-choice-card {
    padding: 22px;
    border-radius: 20px;
  }

  .ms-ui .ms-choice-note,
  .ms-ui .ms-highlight,
  .ms-ui .ms-note {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .ms-ui th,
  .ms-ui td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .ms-ui .ms-table-wrap {
    margin-bottom: 28px;
  }

  .ms-ui .ms-cta-link,
  .ms-ui .ms-btn {
    width: 100%;
    justify-content: center;
  }
}
/* End */
/* /local/templates/my_step/components/bitrix/news/blog/bitrix/news.detail/.default/style.css?177576370115007 */
