/* /cases/ - редизайн каталога кейсов */

.main--cases-hub {
  margin-bottom: 0;
}

.main--cases-hub .page-top {
  margin-bottom: 0;
}

.main--cases-hub .page-title {
  display: none;
}

.main--cases-hub .breadcrumbs {
  margin-bottom: 0;
}

.cases-hub {
  --ch-ink: #14161d;
  --ch-ink-70: #3d4250;
  --ch-ink-50: #6b7280;
  --ch-surface: #f3f5f8;
  --ch-surface-2: #eaeef4;
  --ch-line: #e4e8ee;
  --ch-accent: #15a05a;
  --ch-accent-700: #0f7d45;
  --ch-accent-50: #e9f6ef;
  --ch-navy: #0f1320;
  --ch-r: 16px;
  --ch-font-display: "Inter Tight", sans-serif;
  --ch-font-body: "Inter", sans-serif;
  color: var(--ch-ink);
  font-family: var(--ch-font-body);
}

.cases-hub__hero {
  padding: 8px 0 12px;
  position: relative;
  overflow: hidden;
}

.cases-hub__hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(21, 160, 90, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.cases-hub__intro {
  max-width: 720px;
  position: relative;
}

.cases-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--ch-accent-50);
  color: var(--ch-accent-700);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.cases-hub__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ch-accent);
  box-shadow: 0 0 0 0 rgba(21, 160, 90, 0.5);
  animation: cases-hub-pulse 2.2s infinite;
}

@keyframes cases-hub-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 160, 90, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(21, 160, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 160, 90, 0);
  }
}

.cases-hub__title {
  font-family: var(--ch-font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.07;
  letter-spacing: -1.4px;
  margin: 0 0 20px;
  color: var(--ch-ink);
}

.cases-hub__title em {
  font-style: normal;
  color: var(--ch-accent);
}

.cases-hub__lead {
  color: var(--ch-ink-70);
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

.cases-hub__block {
  padding: 28px 0 72px;
}

.cases-hub__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.cases-hub__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ch-line);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ch-ink-70);
  transition: all 0.18s;
  text-decoration: none;
}

.cases-hub__filter:hover {
  border-color: var(--ch-accent);
  color: var(--ch-ink);
}

.cases-hub__filter--active {
  background: var(--ch-navy);
  border-color: var(--ch-navy);
  color: #fff;
}

.cases-hub__filter-count {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.55;
}

.cases-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.cases-hub__card {
  display: block;
  background: #fff;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-r);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.cases-hub__card:hover {
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(20, 22, 29, 0.12);
  transform: translateY(-4px);
}

.cases-hub__card-img {
  aspect-ratio: 16 / 10;
  background: var(--ch-surface-2);
  position: relative;
  overflow: hidden;
}

.cases-hub__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.cases-hub__card:hover .cases-hub__card-img img {
  transform: scale(1.04);
}

.cases-hub__card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(15, 19, 32, 0.78);
  backdrop-filter: blur(4px);
  padding: 5px 11px;
  border-radius: 100px;
}

.cases-hub__card-body {
  padding: 20px 22px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cases-hub__card-body h3 {
  font-family: var(--ch-font-display);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
  color: var(--ch-ink);
}

.cases-hub__card-body p {
  color: var(--ch-ink-70);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.cases-hub__card-arr {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ch-surface);
  color: var(--ch-ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cases-hub__card:hover .cases-hub__card-arr {
  background: var(--ch-accent);
  color: #fff;
}

.cases-hub__card-arr svg {
  width: 16px;
  height: 16px;
}

.cases-hub__empty {
  text-align: center;
  color: var(--ch-ink-50);
  padding: 60px 0;
  font-size: 15px;
}

.cases-hub__cta {
  background: var(--ch-navy);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.cases-hub__cta::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(21, 160, 90, 0.4) 0%, transparent 65%);
  pointer-events: none;
}

.cases-hub__cta .container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

.cases-hub__cta-title {
  font-family: var(--ch-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: #fff;
  margin: 0 0 16px;
}

.cases-hub__cta-text {
  color: #9aa3b6;
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cases-hub__cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cases-hub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ch-font-body);
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.18s;
}

.cases-hub__btn--white {
  background: #fff;
  color: var(--ch-ink);
}

.cases-hub__btn--white:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  color: var(--ch-ink);
}

.cases-hub__btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cases-hub__btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

@media (min-width: 600px) {
  .cases-hub__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cases-hub__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
