/* ============================================================
   LMSka — раздел «Решения» (5 сегментных страниц + хаб).
   Подключается ПОСЛЕ style.css, те же токены:
   белый фон, единственный акцент #11B481, радиусы 20/12/999.
   ============================================================ */

/* ---------- Хлебные крошки ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  font-size: 14px;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-3); transition: color 160ms var(--ease-out); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs .ico { font-size: 17px; opacity: .55; }

/* ---------- Ярлык сегмента в герое ---------- */
.seg-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 18px;
}
.seg-tag .ico { font-size: 19px; }

/* ---------- Полоса фактов сегмента ---------- */
.sfacts-wrap { background: #fff; }
.sfacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}
.sfact {
  padding: 26px 26px 26px 0;
  border-inline-end: 1px solid var(--line);
}
.sfact:last-child { border-inline-end: 0; }
.sfact:not(:first-child) { padding-inline-start: 26px; }
.sfact .ico { font-size: 24px; color: var(--brand); display: block; margin-bottom: 12px; }
.sfact b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 5px; line-height: 1.3; }
.sfact span { font-size: 14px; color: var(--ink-3); line-height: 1.45; display: block; }

@media (max-width: 940px) {
  .sfacts { grid-template-columns: 1fr 1fr; }
  .sfact { padding: 22px 16px; border-block-end: 1px solid var(--line); }
  .sfact:not(:first-child) { padding-inline-start: 16px; }
  .sfact:nth-child(2n) { border-inline-end: 0; }
  .sfact:nth-last-child(-n+2) { border-block-end: 0; }
}
@media (max-width: 520px) {
  .sfacts { grid-template-columns: 1fr; }
  .sfact { border-inline-end: 0; }
  .sfact:last-child { border-block-end: 0; }
}

/* ---------- Кейсы: ситуация → что сделали → результат ---------- */
.cases { display: grid; gap: 20px; }

.case3 {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  overflow: hidden;
  transition: border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .case3:hover { border-color: #D6DEDB; box-shadow: var(--sh-1); }
}

.case3__head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}
.case3__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  flex: none;
}
.case3__who .ico { font-size: 17px; }
.case3__title { font-size: 18.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }

.case3__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.case3__col {
  padding: 26px 32px 28px;
  border-inline-end: 1px solid var(--line);
  position: relative;
}
.case3__col:last-child {
  border-inline-end: 0;
  background: var(--brand-tint);
}
.case3__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.case3__col:last-child .case3__cap { color: var(--brand-700); }
.case3__cap .ico { font-size: 18px; }
.case3__col p { font-size: 15.3px; color: var(--ink-2); line-height: 1.55; }
.case3__col:last-child p { color: var(--ink); }

@media (max-width: 900px) {
  .case3__head { padding: 20px 22px; gap: 12px; }
  .case3__grid { grid-template-columns: 1fr; }
  .case3__col {
    padding: 20px 22px 22px;
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
  }
  .case3__col:last-child { border-block-end: 0; }
}

/* ---------- На вашем языке (глоссарий сегмента) ---------- */
.lingo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lingo li {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- Хаб раздела: карточки сегментов ---------- */
.hub {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.hub__item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.hub__item--wide { grid-column: span 3; }
.hub__item--accent { background: var(--brand-50); border-color: var(--brand-100); }
@media (hover: hover) and (pointer: fine) {
  .hub__item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
}
.hub__item .ico-badge { margin-bottom: 20px; }
.hub__item--accent .ico-badge { background: #fff; }
.hub__item h3 { font-size: 20px; margin-bottom: 10px; }
.hub__item p { font-size: 15.5px; color: var(--ink-2); }
.hub__list { margin: 18px 0 24px; display: grid; gap: 9px; }
.hub__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.8px;
  color: var(--ink-2);
}
.hub__list .ico { font-size: 18px; color: var(--brand); margin-top: 2px; flex: none; }
.hub__item .link-arrow { margin-top: auto; }

@media (max-width: 1000px) {
  .hub { grid-template-columns: repeat(2, 1fr); }
  .hub__item, .hub__item--wide { grid-column: span 1; }
}
@media (max-width: 620px) {
  .hub { grid-template-columns: 1fr; }
}

/* ---------- Другие решения (перелинковка внизу страницы) ---------- */
.other {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.other__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: #fff;
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.other__item .ico { font-size: 24px; color: var(--brand); }
.other__item b { font-size: 16px; font-weight: 700; line-height: 1.3; }
.other__item span { font-size: 14px; color: var(--ink-3); line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .other__item:hover { border-color: var(--brand-100); background: var(--brand-50); }
}

@media (max-width: 900px) { .other { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .other { grid-template-columns: 1fr; } }

/* ---------- Расчёт цепочки на сегментных страницах ---------- */
.sol-flow .flow { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .sol-flow .flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .sol-flow .flow { grid-template-columns: repeat(2, 1fr); } }
