/* Local styles for /keysy/crm/ — Futora.kz case */

body.case-study {
  --crm-violet: #6d50e8;
  --crm-deep: #4b23bf;
  --crm-blue: #1f78dc;
  --crm-cyan: #0f8fb4;
  --crm-magenta: #b93bb9;
}

body.case-study h1,
body.case-study h2 {
  text-wrap: balance;
}

@media (min-width: 721px) {
  body.case-study h1 {
    font-size: clamp(30px, 3vw, 44px);
  }
}

body.case-study h3 {
  text-wrap: pretty;
}

.case-study .section-heading {
  max-width: 820px;
}

.case-study .section-heading--wide {
  max-width: 1040px;
}

/* ---------- Icons ---------- */

.crm-ico {
  --crm-a: var(--crm-violet);
  --crm-a-bg: rgba(109, 80, 232, 0.08);
  --crm-a-bd: rgba(109, 80, 232, 0.18);
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--crm-a-bd);
  border-radius: 13px;
  color: var(--crm-a);
  background: var(--crm-a-bg);
}

.crm-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crm-ico--sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.crm-ico--sm svg {
  width: 20px;
  height: 20px;
}

.crm-ico--lg {
  width: 64px;
  height: 64px;
  border-radius: 19px;
}

.crm-ico--lg svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.crm-ico--blue {
  --crm-a: var(--crm-blue);
  --crm-a-bg: rgba(31, 120, 220, 0.08);
  --crm-a-bd: rgba(31, 120, 220, 0.18);
}

.crm-ico--cyan {
  --crm-a: var(--crm-cyan);
  --crm-a-bg: rgba(15, 143, 180, 0.09);
  --crm-a-bd: rgba(15, 143, 180, 0.2);
}

.crm-ico--magenta {
  --crm-a: var(--crm-magenta);
  --crm-a-bg: rgba(185, 59, 185, 0.08);
  --crm-a-bd: rgba(185, 59, 185, 0.18);
}

.crm-ico--solid {
  --crm-a: #ffffff;
  --crm-a-bd: transparent;
  background: var(--gradient-brand-wide);
  box-shadow: 0 12px 26px rgba(108, 79, 231, 0.24);
}

/* ---------- Hero ---------- */

.crm-hero-media {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0;
  justify-self: center;
}

.crm-hero-media::before {
  position: absolute;
  z-index: -1;
  inset: 12% -5% -6% 8%;
  border-radius: 28px;
  background: var(--gradient-brand);
  content: "";
  opacity: 0.12;
  transform: rotate(-2.5deg);
}

.crm-hero-media__frame {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.crm-hero-media__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 471;
  border-radius: 14px;
  object-fit: contain;
  object-position: top center;
  background: #152232;
}

.crm-hero-media figcaption {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.crm-hero-kpis {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 0;
  list-style: none;
}

.crm-hero-kpis li {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 23, 47, 0.05);
}

.crm-hero-kpis strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ink);
  font-family: var(--rk-font-head, Montserrat, Arial, sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.crm-hero-kpis span {
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.crm-extlink {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-brand-deep);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crm-extlink:hover {
  color: var(--crm-violet);
}

.crm-hero-metric {
  max-width: 520px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid rgba(109, 80, 232, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 80, 232, 0.12), transparent 46%),
    linear-gradient(180deg, #ffffff, #f7f4ff);
}

.crm-hero-metric strong {
  display: block;
  color: var(--color-brand);
  font-family: var(--rk-font-head, Montserrat, Arial, sans-serif);
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crm-hero-metric span {
  display: block;
  margin-top: 8px;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.crm-flowline {
  margin: 12px 0 0;
  padding: 16px 18px;
  border: 1px dashed rgba(109, 80, 232, 0.28);
  border-radius: 16px;
  background: rgba(109, 80, 232, 0.05);
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Result band ---------- */

.crm-result {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.crm-result__metric {
  display: grid;
  gap: 10px;
  padding: 26px 22px;
  border: 1px solid rgba(109, 80, 232, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 80, 232, 0.12), transparent 46%),
    linear-gradient(180deg, #ffffff, #f7f4ff);
  box-shadow: var(--shadow-sm);
}

.crm-result__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  color: var(--color-ink);
  font-family: var(--rk-font-head, Montserrat, Arial, sans-serif);
  font-size: clamp(28px, 6.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.crm-result__value b {
  color: var(--color-brand);
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.crm-result__value span {
  white-space: nowrap;
}

.crm-result__arrow {
  color: var(--crm-violet);
  font-weight: 700;
}

.crm-result__note {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.crm-result__cards {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-result__cards li {
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #ffffff;
}

.crm-result__cards h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.crm-result__cards p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ---------- About / tags ---------- */

.crm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.crm-tags li {
  padding: 8px 12px;
  border: 1px solid rgba(109, 80, 232, 0.16);
  border-radius: 999px;
  background: rgba(109, 80, 232, 0.06);
  color: var(--crm-deep);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Problems ---------- */

.crm-issues {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.crm-issue {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 23, 47, 0.045);
}

.crm-issue h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

.crm-issue p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.crm-issue-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--crm-violet);
  border-radius: 0 14px 14px 0;
  background: rgba(109, 80, 232, 0.06);
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Implemented system ---------- */

.crm-system {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-system li {
  display: grid;
  align-items: start;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #ffffff;
}

.crm-system strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.crm-system span {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- Evidence screenshots ---------- */

.crm-evidence {
  display: grid;
  align-items: center;
  gap: 24px;
  grid-template-columns: 1fr;
}

.crm-shot {
  margin: 0;
  max-width: 860px;
}

.crm-shot a {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.crm-shot a:focus-visible {
  outline: 2px solid var(--crm-violet);
  outline-offset: 3px;
}

.crm-shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  object-position: top left;
  background: #152232;
}

.crm-shot-role {
  margin: 12px 0 0;
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.crm-shot figcaption {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.crm-points {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.crm-points li {
  display: grid;
  align-items: start;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 13px;
  background: #ffffff;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ---------- Path of a request ---------- */

.crm-path {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-path li {
  position: relative;
  min-width: 0;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #ffffff;
}

.crm-path li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--gradient-brand);
  content: "";
}

.crm-path strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.crm-path span {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- Task board mock ---------- */

.crm-board {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.crm-board__col {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #ffffff;
}

.crm-board__col h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.crm-board__col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-board__col li {
  padding: 12px 13px;
  border: 1px solid rgba(109, 80, 232, 0.12);
  border-radius: 12px;
  background: rgba(109, 80, 232, 0.04);
  color: var(--color-ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.crm-board__col--due li {
  border-color: rgba(185, 59, 185, 0.2);
  background: rgba(185, 59, 185, 0.06);
}

/* ---------- Stages ---------- */

.crm-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.crm-stages li {
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Before / after ---------- */

.crm-compare {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.crm-compare article {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #ffffff;
}

.crm-compare h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.crm-compare ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-compare li {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.crm-compare li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(109, 80, 232, 0.45);
  content: "";
}

.crm-compare article:last-child {
  border-color: rgba(109, 80, 232, 0.22);
  background: linear-gradient(180deg, rgba(109, 80, 232, 0.08), #ffffff 42%);
}

.crm-compare article:last-child li::before {
  background: var(--crm-violet);
}

.crm-compare__metric {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #ffffff;
}

.crm-compare__metric strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--rk-font-head, Montserrat, Arial, sans-serif);
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: -0.03em;
}

.crm-compare__metric span {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- FAQ extras ---------- */

.faq .section-heading .crm-ico {
  margin-bottom: 16px;
}

.case-study .faq__grid {
  gap: clamp(34px, 4.4vw, 62px);
}

/* ---------- Final CTA ---------- */

.crm-cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 66px);
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(28, 13, 66, 0.1), rgba(28, 13, 66, 0.1)),
    var(--gradient-brand-wide);
}

.crm-cta-band__inner {
  display: grid;
  align-items: center;
  gap: 26px;
}

.crm-cta-band .section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.crm-cta-band h2,
.crm-cta-band p {
  color: #ffffff;
}

.crm-cta-band p,
.crm-cta-band .section-heading > p:not(.section-label) {
  color: rgba(255, 255, 255, 0.95);
}

.crm-cta-band .section-heading > p:not(.section-label) {
  font-size: clamp(14px, 1.15vw, 16.5px);
}

.crm-cta-band .section-label {
  color: rgba(255, 255, 255, 0.9);
}

.crm-cta-band .hero__actions {
  margin-bottom: 0;
}

.crm-cta-band .button--primary {
  color: var(--color-brand-deep);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 23, 47, 0.18);
}

.crm-cta-band .button--secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.crm-cta-band .button--secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.crm-cta-chips {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-cta-chips li {
  display: grid;
  align-items: center;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: rgba(43, 24, 96, 0.24);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.crm-cta-chips .crm-ico {
  --crm-a: #ffffff;
  --crm-a-bg: rgba(255, 255, 255, 0.16);
  --crm-a-bd: rgba(255, 255, 255, 0.34);
}

/* ---------- Modal + form ---------- */

body.rk-modal-open {
  overflow: hidden;
}

.rk-modal[hidden] {
  display: none;
}

.rk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.rk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.rk-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 520px);
  max-height: min(90vh, 760px);
  padding: 28px 26px 24px;
  overflow: auto;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.rk-modal__dialog > p {
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.rk-modal__title {
  margin: 0 0 8px;
  padding-right: 36px;
  color: var(--color-ink);
  font-family: var(--rk-font-head, Montserrat, Arial, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.rk-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-ink);
  font-size: 24px;
  line-height: 1;
}

.rk-modal__close:hover {
  background: #f2f2f7;
}

.rk-modal__dialog form {
  display: flex;
  margin-top: 8px;
  flex-direction: column;
  gap: 0;
}

.rk-field {
  display: flex;
  margin-bottom: 12px;
  flex-direction: column;
  gap: 6px;
}

.rk-field label {
  color: var(--color-ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.rk-field input,
.rk-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9d5df;
  border-radius: 10px;
  color: var(--color-ink);
  background: #fff;
  font: inherit;
}

.rk-field textarea {
  min-height: 96px;
  resize: vertical;
}

.rk-consent {
  display: flex;
  margin: 4px 0 14px;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.rk-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.rk-consent a {
  color: var(--color-brand);
  text-decoration: underline;
}

.rk-btn {
  display: inline-flex;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rk-btn--primary {
  width: 100%;
  color: #fff;
  background: var(--gradient-brand-wide);
}

.rk-req {
  color: #b00020;
}

.rk-contact-card__body,
.rk-contact-card__title,
.rk-contact-card__value,
.rk-contact-card__note {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

@media (min-width: 721px) {
  .crm-hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-result__cards {
    grid-template-columns: 1fr;
  }

  .crm-issues {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-cta-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) {
  .case-study .hero__grid {
    align-items: center;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  }

  .case-study .hero__content {
    max-width: none;
  }

  .crm-hero-media {
    justify-self: end;
  }

  .crm-result {
    grid-template-columns: 1fr;
  }

  .crm-result__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-evidence {
    gap: 48px;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .crm-evidence--rev {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .crm-evidence--rev .crm-shot {
    order: -1;
  }

  .crm-system {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .crm-cta-band__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 46px;
  }

  .crm-cta-chips {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (hover: hover) and (min-width: 981px) {
  .crm-issue,
  .crm-result__cards li,
  .crm-board__col,
  .crm-system li {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .crm-issue:hover,
  .crm-result__cards li:hover,
  .crm-board__col:hover,
  .crm-system li:hover {
    border-color: rgba(109, 80, 232, 0.32);
    box-shadow: 0 18px 44px rgba(31, 23, 47, 0.1);
    transform: translateY(-3px);
  }
}

@media (max-width: 480px) {
  .crm-hero-media__frame {
    border-radius: 18px;
  }

  .crm-result__value {
    font-size: clamp(24px, 8vw, 34px);
  }

  .crm-shot img {
    width: 640px;
    max-width: none;
    min-width: 640px;
  }
}

/* Floating chat + scroll-top occupy the bottom-right corner.
   Keep the buttons; give copy, captions, cards and the final CTA a clear gutter. */
body.case-study {
  --crm-float-pad-x: 88px;
}

@media (min-width: 1600px) {
  body.case-study {
    --crm-float-pad-x: 0px;
  }
}

body.case-study .crm-hero-media,
body.case-study .crm-shot,
body.case-study .crm-result__cards,
body.case-study .crm-issues,
body.case-study .crm-board,
body.case-study .crm-compare,
body.case-study .crm-cta-band__inner {
  padding-right: var(--crm-float-pad-x);
}

body.case-study .crm-shot-role,
body.case-study .crm-shot figcaption,
body.case-study .crm-hero-media figcaption {
  padding-right: 4px;
}

@media (max-width: 767px) {
  body.rk-clean.case-study {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0));
  }

  body.case-study {
    --crm-float-pad-x: 84px;
  }

  body.case-study .crm-hero-media {
    padding-right: 0;
  }

  body.case-study .crm-hero-media,
  body.case-study .crm-shot,
  body.case-study .crm-result__cards,
  body.case-study .crm-issues,
  body.case-study .crm-board,
  body.case-study .crm-compare,
  body.case-study .crm-cta-band {
    padding-bottom: 28px;
    scroll-margin-bottom: 120px;
  }

  body.case-study .crm-cta-band__inner {
    padding-bottom: 16px;
  }
}

@media (max-width: 500px) {
  body.case-study {
    --crm-float-pad-x: 88px;
    --crm-float-pad-left: 64px;
  }

  body.case-study .crm-hero-media,
  body.case-study .crm-shot,
  body.case-study .crm-result__cards,
  body.case-study .crm-issues,
  body.case-study .crm-board,
  body.case-study .crm-compare,
  body.case-study .crm-cta-band__inner {
    padding-left: var(--crm-float-pad-left);
  }

  body.case-study .crm-hero-media {
    padding-left: 0;
    padding-right: 0;
  }
}
