/* ===== Блок кейсов по нишам ===== */
.cases-niches__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 32px;
}
.case-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.case-card__thumb picture, .case-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .4s ease;
}
.case-card:hover img { transform: scale(1.04); }
.case-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 26px 26px;
}
.case-card__title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.case-card__body p {
  flex: 1;
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
}
.case-card .btn-primary {
  align-self: flex-start;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .25s ease;
}
.case-card .btn-primary:hover {
  background-color: #0c6dff;
  transform: translateY(-2px);
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
  display: flex;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 40px;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  color: #9aa3bc;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 6px;
  color: #ccc;
}
.breadcrumbs a {
  text-decoration: none;
  color: #0c6dff;
  transition: color .2s;
}
.breadcrumbs a:hover {
  color: #705fe1;
}

/* высота фикс-хедера (если другая — поменяй) */
:root { --header-h: 72px; }

/* добавим запас под фиксированную шапку */
.cases-niches{
  /* если шапка не фикс — получится обычный отступ 36px */
  padding-top: calc(var(--header-h) + 24px);
}

/* чтобы точно не схлопывались отступы у заголовка блока */
.cases-niches .section-title{ margin-top: 0; }

/* хлебные крошки — небольшой внешний отступ сверху */
.breadcrumbs{ margin-top: 8px; }

/* на мобильных запас поменьше */
@media (max-width: 767.98px){
  :root { --header-h: 64px; }
  .cases-niches{ padding-top: calc(var(--header-h) + 16px); }
}

/* ---------- BREADCRUMBS (финальная версия) ---------- */
.breadcrumbs {
  margin: 28px 0 14px; /* немного воздуха сверху и снизу */
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #6f7790;
  text-align: left;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
}

/* разделитель */
.breadcrumbs li + li::before {
  content: "/";
  opacity: 0.4;
  margin: 0 6px;
}

/* ссылки */
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #2f27d6;
  text-decoration: underline;
}

/* последний пункт (текущая страница) */
.breadcrumbs li:last-child span {
  color: #ffffff;
  font-weight: 700;
}

/* десктоп: фон под крошками */
@media (min-width: 768px) {
  .breadcrumbs {
    font-size: 16px;
    margin: 36px 0 16px; /* чуть меньше сверху, чем раньше */
  }

  .breadcrumbs ol {
    background: rgba(112, 95, 225, 0.05);
    border: 1px solid rgba(112, 95, 225, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
  }
}

/* мобильная версия */
@media (max-width: 575.98px) {
  .breadcrumbs {
    margin: 18px 0 8px;
    font-size: 14px;
    text-align: center;
  }

  .breadcrumbs ol {
    background: transparent;
    border: none;
    padding: 0;
    gap: 6px;
  }

  /* воздух под хлебными крошками перед заголовком */
  .cases-niches .section-title {
    margin-top: 8px;
  }
}

/* ---------- Eyebrow/подзаголовок в .section-title ---------- */
.cases-niches .section-title > span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  margin-bottom:10px;                /* небольшой отступ от заголовка */
  background:rgba(112,95,225,.08);   /* мягкий чип-фон под бренд */
  border:1px solid rgba(112,95,225,.18);
  color:#4f46e5;
  font-weight:700;
  font-size:16px;
  line-height:1;
  letter-spacing:.03em;
  border-radius:999px;               /* пилюля */
  text-transform:none;               /* оставляем естественный регистр */
}

/* маленькая декоративная точка слева */
.cases-niches .section-title > span::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background:linear-gradient(135deg,#705fe1,#0c6dff);
  box-shadow:0 0 0 3px rgba(112,95,225,.12);
}

/* чтобы весь блок смотрелся сбалансированно */
.cases-niches .section-title{
  text-align:center;
}
.cases-niches .section-title h1{
  margin-top:10px;                   /* ближе к подзаголовку */
  margin-bottom:14px;                /* и не висит над абзацем */
}

/* мобильные правки: чуть компактнее */
@media (max-width:575.98px){
  .cases-niches .section-title > span{
    padding:5px 10px;
    font-size:12.5px;
    margin-bottom:8px;
  }
  .cases-niches .section-title h1{
    margin-top:8px;
    margin-bottom:12px;
  }
}

