body.cases-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7, 12, 22, 0.98) 0%, rgba(5, 9, 17, 0.99) 100%),
    #070c16;
  color: #f2f6ff;
}

body.cases-page::before {
  content: "";
  position: fixed;
  top: 62px;
  right: 0;
  bottom: 0;
  width: min(46vw, 680px);
  pointer-events: none;
  background:
    linear-gradient(90deg, #070c16 0%, rgba(7, 12, 22, 0.86) 30%, rgba(7, 12, 22, 0.48) 64%, rgba(7, 12, 22, 0.82) 100%),
    url("/assets/user/image (2).webp") center / cover no-repeat;
  opacity: 0.38;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}

body.cases-page main.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(104px, 13vh, 142px) 24px 72px;
}

body.cases-page .breadcrumb {
  margin: 0 0 20px;
  color: rgba(213, 224, 242, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

body.cases-page .breadcrumb a {
  color: rgba(213, 224, 242, 0.64);
  text-decoration: none;
}

body.cases-page h1 {
  max-width: 820px;
  margin: 0 0 28px;
  color: #f7faff;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

body.cases-index main.wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.cases-index .breadcrumb,
body.cases-index h1 {
  grid-column: 1 / -1;
}

body.cases-index .card {
  position: relative;
  min-height: 220px;
  margin: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: rgba(11, 20, 36, 0.86);
  border: 1px solid rgba(125, 153, 196, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

body.cases-index .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(57, 217, 138, 0.1), transparent 42%);
  pointer-events: none;
}

body.cases-index .card::after {
  content: "Кейс";
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(57, 217, 138, 0.76);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

body.cases-index .card h3,
body.cases-index .card p {
  position: relative;
  z-index: 1;
}

body.cases-index .card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

body.cases-index .card h3 a {
  color: #39d98a;
  text-decoration: none;
}

body.cases-index .card p {
  margin: 0;
  color: rgba(224, 233, 248, 0.76);
  font-size: 15px;
  line-height: 1.6;
}

body.cases-detail h1 + p {
  max-width: 760px;
  margin: 0 0 40px;
  color: rgba(229, 237, 250, 0.78);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.7;
}

body.cases-detail p:not(.breadcrumb) {
  max-width: 760px;
  color: rgba(224, 233, 248, 0.8);
  font-size: 16px;
  line-height: 1.72;
}

body.cases-detail h2 {
  margin: 36px 0 14px;
  color: #f7faff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

body.cases-detail h2 + p {
  max-width: 720px;
  margin: 0 0 26px;
  padding: 22px 24px;
  color: rgba(224, 233, 248, 0.8);
  font-size: 16px;
  line-height: 1.7;
  background: rgba(11, 20, 36, 0.84);
  border: 1px solid rgba(125, 153, 196, 0.2);
  border-radius: 8px;
}

body.cases-detail ul {
  max-width: 720px;
  margin: 0 0 26px;
  padding: 22px 24px;
  display: grid;
  gap: 12px;
  color: rgba(224, 233, 248, 0.82);
  background: rgba(11, 20, 36, 0.84);
  border: 1px solid rgba(125, 153, 196, 0.2);
  border-radius: 8px;
  list-style: none;
}

body.cases-detail li {
  position: relative;
  margin: 0;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.65;
}

body.cases-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39d98a;
  box-shadow: 0 0 18px rgba(57, 217, 138, 0.4);
}

body.cases-detail li a {
  color: #39d98a;
  font-weight: 800;
  text-decoration: none;
}

body.cases-detail .seo-grid,
body.cases-index .seo-grid {
  max-width: 960px;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.cases-detail .seo-card,
body.cases-index .seo-card,
body.cases-detail .seo-cta,
body.cases-index .seo-cta {
  padding: 22px;
  background: rgba(11, 20, 36, 0.84);
  border: 1px solid rgba(125, 153, 196, 0.2);
  border-radius: 8px;
}

body.cases-detail .seo-card h3,
body.cases-index .seo-card h3,
body.cases-detail .seo-cta h2,
body.cases-index .seo-cta h2 {
  margin: 0 0 10px;
  color: #f7faff;
  font-size: 19px;
  line-height: 1.3;
}

body.cases-detail .seo-card p,
body.cases-index .seo-card p,
body.cases-detail .seo-cta p,
body.cases-index .seo-cta p {
  margin: 0;
  color: rgba(224, 233, 248, 0.78);
  font-size: 15px;
  line-height: 1.64;
}

body.cases-index .case-intro,
body.cases-index .seo-cta {
  grid-column: 1 / -1;
}

body.cases-index .case-intro {
  max-width: 780px;
  margin: 0 0 12px;
  color: rgba(224, 233, 248, 0.78);
  font-size: 17px;
  line-height: 1.72;
}

body.cases-detail .seo-cta,
body.cases-index .seo-cta {
  max-width: 760px;
  margin-top: 34px;
}

body.cases-detail .seo-cta__button,
body.cases-index .seo-cta__button {
  margin-top: 18px;
  min-height: 46px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06101d;
  background: #39d98a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

body.cases-page .site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(125, 153, 196, 0.18);
  color: rgba(213, 224, 242, 0.6);
  font-size: 14px;
  line-height: 1.5;
}

body.cases-page .site-footer a {
  color: rgba(213, 224, 242, 0.68);
  text-decoration: none;
}

@media (max-width: 980px) {
  body.cases-page::before {
    display: none;
  }

  body.cases-page main.wrap {
    padding: 92px 20px 52px;
  }

  body.cases-page h1 {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.12;
  }

  body.cases-index main.wrap {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.cases-detail .seo-grid,
  body.cases-index .seo-grid {
    grid-template-columns: 1fr;
  }

  body.cases-index .card {
    min-height: 168px;
    padding: 56px 20px 22px;
  }

  body.cases-detail h2 + p,
  body.cases-detail ul {
    padding: 18px;
  }

  body.cases-detail li {
    font-size: 16px;
  }

  body.cases-page .site-footer {
    width: calc(100% - 40px);
    padding-bottom: 30px;
    gap: 10px 18px;
  }
}
