:root {
  --ai2crm-ink: #191a22;
  --ai2crm-violet: #671ed6;
  --ai2crm-violet-light: #8a35ff;
  --ai2crm-blue: #071887;
  --ai2crm-muted: #626b7d;
  --ai2crm-line: rgba(103, 30, 214, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ai2crm-ink);
  font-family: "Inter", "Open Sans", Arial, sans-serif;
}

a {
  color: inherit;
}

.case-header {
  width: min(1200px, calc(100% - 48px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(25, 26, 34, 0.1);
}

.case-header__logo {
  display: flex;
  align-items: center;
  width: 230px;
  flex: 0 0 230px;
}

.case-header__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.case-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.case-header__nav a,
.case-header__button {
  text-decoration: none;
}

.case-header__button {
  min-width: 122px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: var(--ai2crm-violet);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.case-page {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  color: var(--ai2crm-violet);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 52px;
  align-items: stretch;
}

.case-hero__label {
  color: var(--ai2crm-violet);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-hero h1 {
  margin: 16px 0 0;
  color: var(--ai2crm-ink);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.case-hero__summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: #3e4654;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
}

.case-hero__image {
  min-height: 360px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f1fb;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(25, 26, 34, 0.12);
}

.case-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(103, 30, 214, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

.case-hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.case-metrics {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-metric {
  min-height: 134px;
  padding: 24px;
  border: 1px solid var(--ai2crm-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(25, 26, 34, 0.07);
}

.case-metric span {
  display: block;
  color: var(--ai2crm-violet);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-metric strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.case-section {
  margin-top: 58px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 46px;
  padding-top: 42px;
  border-top: 1px solid rgba(25, 26, 34, 0.1);
}

.case-section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.case-section p,
.case-section li {
  color: #3e4654;
  font-size: 17px;
  line-height: 1.58;
}

.case-section p {
  margin: 0;
}

.case-section ul {
  margin: 0;
  padding-left: 20px;
}

.case-cta {
  margin-top: 66px;
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 50%, rgba(103, 30, 214, 0.42), rgba(103, 30, 214, 0) 44%),
    linear-gradient(90deg, #07080c, #111c22);
  color: #ffffff;
}

.case-cta strong {
  display: block;
  font-size: 28px;
  line-height: 1.25;
}

.case-cta span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.case-cta a {
  min-width: 240px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 34px;
  background: var(--ai2crm-violet);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(103, 30, 214, 0.38);
}

.case-more {
  margin-top: 66px;
}

.case-more h2 {
  margin: 0 0 24px;
  font-size: 30px;
}

.case-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-more__item {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ai2crm-line);
  border-radius: 8px;
  color: var(--ai2crm-ink);
  text-decoration: none;
}

.case-more__item strong {
  font-size: 18px;
  line-height: 1.25;
}

.case-more__item span {
  color: var(--ai2crm-violet);
  font-weight: 800;
}

@media screen and (max-width: 959px) {
  .case-header {
    width: min(640px, calc(100% - 32px));
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 18px 0;
  }

  .case-header__logo {
    width: 210px;
    flex-basis: 210px;
  }

  .case-header__nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .case-page {
    width: min(640px, calc(100% - 32px));
    padding-top: 34px;
  }

  .case-hero,
  .case-section {
    grid-template-columns: 1fr;
  }

  .case-hero h1 {
    font-size: 34px;
  }

  .case-metrics,
  .case-more__grid {
    grid-template-columns: 1fr;
  }

  .case-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
