/**
 * Стили для страницы кейса "Битрикс 24"
 * WIP: базовые отступы, временные фоны для визуального контроля
 */

/* ============================================
   Общие стили под .case--marketing
   ============================================ */

.case--marketing {
  /* Базовые настройки для всей страницы кейса */
  min-height: 100vh;
}

.case--marketing .case-hero .container,
.case--marketing .speech,
.case--marketing .case-process__wrap,
.case--marketing .process-item,
.case--marketing .process-item__left,
.case--marketing .process-item__right,
.case--marketing .case-result__slider,
.case--marketing .case-result__center,
.case--marketing .case-result__text,
.case--marketing .case-result-composition,
.case--marketing .case-result-composition__main,
.case--marketing .case-result-composition__card,
.case--marketing .case-more__wrap,
.case--marketing .case-accordion,
.case--marketing .case-accordion__item,
.case--marketing .case-accordion__content,
.case--marketing .case-accordion__text,
.case--marketing .case-accordion__image-wrap {
  box-sizing: border-box;
}

/* =====================================================
   HERO — обложка кейса
===================================================== */

.case--marketing .case-hero {
  position: relative;
  /* padding убран, т.к. используется overlay с компенсацией --header-h */
  /* Вертикальные отступы выставлены через padding у .container */
  background: #f5f5f5;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
}

/* Переопределение .container для HERO — работает на полную ширину */
.case--marketing .case-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 200.46px 100px 48.53px;
}

/* Декоративные SVG - БЕЗ принудительной opacity */
.case--marketing .case-hero__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  /* opacity убрана — прозрачность в самих SVG */
}

.case--marketing .case-hero__decor--w {
  left: 40px;
  bottom: 190px;
  width: 400px;
}

.case--marketing .case-hero__decor--arrow {
  right: 28%;
  top: 13%;
  width: 180px;
}

/* Фоновая обёртка для градиентных пятен */
.case--marketing .case-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Базовый стиль градиентного пятна */
.case--marketing .blob {
  position: absolute;
  width: 793px;
  height: 403px;
  border-radius: 793px;
  opacity: 0.6;
  background: linear-gradient(270deg, #DD7AF3 0%, #3DDFEC 100%);
  filter: blur(205.65px);
}

/* TODO: Временные позиции, настроить через DevTools */
.case--marketing .blob--1 {
  top: 10%;
  left: -15%;
}

.case--marketing .blob--2 {
  top: 70%;
  right: 0;
}

.case--marketing .blob--3 {
  bottom: -35%;
  left: 0;
}

.case--marketing .blob--4 {
  top: 30%;
  right: 30%;
}


/* Обёртка заголовка */
.case--marketing .case-hero__head {
  margin-bottom: 80px;
}

/* Заголовок кейса */
.case--marketing .case-hero__title {
  font-family: 'Jost', sans-serif;
  font-size: 106px;
  font-weight: 700;
  line-height: 1.17;
  text-transform: uppercase;
  margin: 0;
  color: #282828; /* Точный цвет из макета */
}

/* Подзаголовок */
.case--marketing .case-hero__subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 73px;
  font-weight: 500;
  line-height: 1.17;
  text-transform: uppercase;
  margin: 16px 0 0;
  color: #282828; /* Точный цвет из макета */
}

/* Контейнер speech-блоков */
.case--marketing .case-hero__speech {
  display: flex;
  justify-content: flex-start; /* Выравнивание по левому краю */
  gap: 174.44px; /* Точный gap из макета */
}

.case--marketing .itw-case-breadcrumbs--inside-hero {
  position: absolute;
  left: 48.53px;
  right: 200.46px;
  bottom: 24px;
}

.case--marketing .itw-case-breadcrumbs--inside-hero .itw-breadcrumbs__list {
  color: rgba(40, 40, 40, 0.42);
}

.case--marketing .itw-case-breadcrumbs--inside-hero .itw-breadcrumbs__link {
  color: rgba(40, 40, 40, 0.54);
}

.case--marketing .itw-case-breadcrumbs--inside-hero .itw-breadcrumbs__item--current {
  color: rgba(40, 40, 40, 0.74);
}

/* Блок speech с градиентной рамкой */
.case--marketing .speech {
  position: relative;
  flex: 0 0 auto; /* Не растягиваются, фиксированная ширина */
  padding: 36px; /* Уменьшен padding под макет */
  border-radius: 20px; /* Скругление под макет */
  background: #ffffff;
border: 7px solid transparent;

  /* Градиентная обводка через двойной background */
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
   
}

/* Точные размеры для левого блока */
.case--marketing .speech--left {
  width: 664px; /* Точная ширина из макета */
  margin-left: 90px;

}

/* Точные размеры для правого блока */
.case--marketing .speech--right {
  width: 585.01px; /* Точная ширина из макета */
  margin-top: -60px; /* Поднят выше левого блока */
  height: fit-content;
}

/* Хвостик слева - вниз-влево */
.case--marketing .speech--left::after {
  content: "";
  position: absolute;
      bottom: -20px;
  left: 50px; /* Чуть левее */
  width: 24px;
  height: 24px;

  background: #ffffff;
      border-left: 7px solid #6DE0D4;
    border-bottom: 7px solid #6DE0D4;

  transform: rotate(-45deg);
}

/* Хвостик справа - вниз-вправо */
.case--marketing .speech--right::after {
  content: "";
  position: absolute;
  bottom: -20px; /* Ближе к блоку */
  right: 50px; /* Чуть правее */
  width: 24px;
  height: 24px;

  background: #ffffff;
  border-right: 7px solid #4A44E3;
    border-bottom: 7px solid #4A44E3;

  transform: rotate(45deg);
}

/* Заголовок speech с градиентным текстом */
.case--marketing .speech__title {
  font-family: 'Jost', sans-serif;
  font-size: 47px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  line-height: 1.2;

  background: linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Текст внутри speech */
.case--marketing .speech__text {
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.22;
  margin: 0;
  color: #000;
}

/* =====================================================
   HERO 2 — фиксированный фон на весь экран
===================================================== */

.case--marketing .case-hero2 {
  width: 100%;
  height: 100vh;
  /* TODO: Добавить изображение /assets/img/case-bitrix-hero-2.jpg */
  background: url(../../assets/img/case-bitrix-hero-2.jpg) center / cover no-repeat;
  background-attachment: fixed;
}

/* =====================================================
   Хлебные крошки
===================================================== */

.case--marketing .case-breadcrumbs {
  height: 80px;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
}

.case--marketing .breadcrumbs {
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.27;
  color: #282828;
  opacity: 0.2;
}

.case--marketing .breadcrumbs a {
  text-decoration: none;
  color: inherit;
}



/* ============================================
   Секция ЧТО БЫЛО СДЕЛАНО — ТАЙМЛАЙН
   ============================================ */

.case--marketing .case-process {
  position: relative;
  padding: 100px 0 40px;
  background: #f5f5f5;
  overflow: hidden;
}

.case--marketing .case-process__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.case--marketing .case-process__blob {
  position: absolute;
  width: 620px;
  height: 320px;
  border-radius: 620px;
  opacity: 0.4;
  background: linear-gradient(270deg, #DD7AF3 0%, #3DDFEC 100%);
  filter: blur(180px);
}

.case--marketing .case-process__blob--1 {
  top: 4%;
  left: -12%;
}

.case--marketing .case-process__blob--2 {
  top: 38%;
  right: -16%;
}

.case--marketing .case-process__blob--3 {
  bottom: 2%;
  left: 18%;
}

/* Full-width обёртка для десктопа */
.case--marketing .case-process__wrap {
  width: 100%;
  padding-left: 100px;
  padding-right: 100px;
}

@media (min-width: 1201px) {
  .case--marketing .case-process__wrap {
    width: 85vw;
    padding-left: 150px;
    padding-right: 150px;
    margin: 0 auto;
  }
}

@media (max-width: 1200px) {
  .case--marketing .case-process__wrap {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Заголовок секции */
.case--marketing .case-process__title {
  font-family: 'Jost', sans-serif;
  font-size: 73px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 80px 0;
  color: #282828;
  text-align: left;
}

/* Контейнер timeline */
.case--marketing .case-process__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================
   PROCESS ITEM — Один элемент таймлайна
   ============================================ */

.case--marketing .process-item {
  display: grid;
  grid-template-columns: 460px 120px 1fr;
  gap: 60px;
  position: relative;
  padding-bottom: 120px;
}

/* Левая колонка: номер + заголовок */
.case--marketing .process-item__left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Большая цифра с градиентом — фоновая */
.case--marketing .process-item__num {
  font-family: 'Jost', sans-serif;
  font-size: 200px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  margin-top: -10px;
}

/* Заголовок процесса */
.case--marketing .process-item__heading {
  font-family: 'Jost', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.17;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: #282828;
}

/* Средняя колонка: ось с точкой и линией */
.case--marketing .process-item__axis {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Вертикальная линия — градиентная */
.case--marketing .process-item__line {
  position: absolute;
  top: 14px;
  left: 50%;              /* было 45% */
  transform: translateX(-50%);
  width: 3px;
  height: calc(100% + 120px);
  background: linear-gradient(180deg, rgba(74, 68, 227, 0.25) 0%, rgba(109, 224, 212, 0.25) 100%);
  border-radius: 2px;
}

/* Скрываем линию у последнего элемента */
.case--marketing .process-item:last-child .process-item__line {
  display: none;
}

/* Точка: внутренняя красная + внешнее градиентное кольцо с зазором */
.case--marketing .process-item__dot {
  position: relative;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E03E3E;
  flex-shrink: 0;
}

/* Внешнее кольцо с зазором */
.case--marketing .process-item__dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

/* Голубой огонёк (только у первого элемента) */
.case--marketing .process-item__glow {
  display: none;
}

.case--marketing .process-item:first-child .process-item__glow {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 224, 212, 0.8) 0%, rgba(109, 224, 212, 0.3) 40%, rgba(109, 224, 212, 0) 70%);
  box-shadow: 0 0 20px 8px rgba(109, 224, 212, 0.4);
  z-index: 0;
  filter: blur(4px);
}

/* Правая колонка: контент */
.case--marketing .process-item__right {
  padding-top: 8px;
  min-width: 0;
}

/* Обёртка контента (универсальная под любое наполнение) */
.case--marketing .process-item__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Подзаголовок */
.case--marketing .process-item__subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.27;
  margin: 0 0 8px 0;
  color: #282828;
  text-transform: uppercase;
}

/* Списки */
.case--marketing .process-item__list {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.case--marketing .process-item__list li {
  position: relative;
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.27;
  color: #282828;
  margin-bottom: 12px;
  padding-left: 12px;
}

.case--marketing .process-item__list li::before {
  content: '•';
  position: absolute;
  left: -8px;
  color: #6DE0D4;
  font-weight: 700;
}

/* ============================================
   Секция РЕЗУЛЬТАТ
   ============================================ */

.case--marketing .case-result {
  min-height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Фон: точки + градиент */
  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.13) 0 2.15px,
      transparent 2.16px
    ),
    linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);

  background-size: 26.92px 26.92px, cover;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, center;
}

/* Заголовок РЕЗУЛЬТАТ */
.case--marketing .case-result__title {
  position: absolute;
  top: 100px;
  left: 150px;
  font-family: 'Jost', sans-serif;
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.68;
  margin: 0;
  z-index: 1;
}

/* Слайдер-контейнер */
.case--marketing .case-result__slider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Слайд */
.case--marketing .case-result__slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Центральный блок (wm + текст) */
.case--marketing .case-result__center {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
}

/* Водяной знак (wm) */
.case--marketing .case-result__wm {
  width: 400px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.3;
}

/* Текстовый блок */
.case--marketing .case-result__text {
  max-width: 600px;
}

.case--marketing .case-result__text h3 {
  font-family: 'Jost', sans-serif;
  font-size: 47px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.case--marketing .case-result__text p {
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.27;
  color: #ffffff;
  margin: 0;
  left: -180px;
  position: relative;
}

/* Пагинация (пока пустая) */
.case--marketing .case-result__pagination {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  /* Стили для точек пагинации добавятся при реализации слайдера */
}

/* ============================================
   Секция ИТОГ — Бегущая строка
   ============================================ */

.case--marketing .case-summary {
  /* Убираем ненужные стили */
  padding: 0;
  background: #fff;
  border: none;
}

/* Блок бегущей строки */
.case--marketing .case-marquee {
  position: relative;
  width: 100%;
  height: 264px;
  overflow: hidden; /* Скрываем всё что за пределами */
  background: transparent;
}

/* Трек (двигающийся контейнер) */
.case--marketing .case-marquee__track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
}

/* Контент (клонируемая лента) */
.case--marketing .case-marquee__content {
  display: flex;
  align-items: center;
  gap: 80px; /* Расстояние между элементами */
  min-width: 0; /* Предотвращаем распирание */
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 70px;
}

/* Текст "ИТОГ" с градиентом */
.case--marketing .case-marquee__text {
  font-family: 'Jost', sans-serif;
  font-size: 166px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  
  /* Градиентный текст */
  background: linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  
  flex-shrink: 0;
}

/* Стрелка */
.case--marketing .case-marquee__arrow {
  width: 144px;
  height: 144px;
  flex-shrink: 0;
  display: block;
}

/* CSS-анимация (заполнится через JS с правильным duration) */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   Блок композиции "ИТОГ"
   ============================================ */

.case--marketing .case-result-composition {
  position: relative;
  width: 100%;
  min-height: 640px;
  overflow: hidden; /* Предотвращаем горизонтальный скролл */
  background: #fff; /* На белом фоне */
  padding: 140px 0 92px;
}

/* Фоновый контейнер для градиентных пятен */
.case--marketing .case-result-composition__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Базовый стиль градиентного пятна для композиции */
.case--marketing .case-result__blob {
  position: absolute;
  width: 793px;
  height: 403px;
  border-radius: 793px;
  opacity: 0.6;
  background: linear-gradient(270deg, #DD7AF3 0%, #3DDFEC 100%);
  filter: blur(205.65px);
}

/* Blob 1 — позиционирование вручную */
.case--marketing .case-result__blob--1 {
  top: 20%;
  left: -10%;
}

/* Blob 2 — позиционирование вручную */
.case--marketing .case-result__blob--2 {
  bottom: 10%;
  right: -5%;
}

/* Фоновые декоративные элементы */

/* Ломаные фигуры слева снизу */
.case--marketing .case-result-composition__bg-shapes {
  position: absolute;
  left: -212px;
  top: 258px;
  bottom: auto;
  width: clamp(210px, 25vw, 360px);
  height: auto;
  opacity: 0.8;
  transform: rotate(30deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}

/* 3D эллипсы/кольца */
.case--marketing .case-result-composition__bg-rings {
  position: absolute;
  left: 250px;
  top: 26%;
  transform: translateY(-50%);
  width: 450px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

/* Основная композиция справа */
.case--marketing .case-result-composition__main {
  position: relative;
  width: min(100%, 1176px);
  margin: 0 auto;
  padding-top: 52px;
  z-index: 2;
  min-width: 0;
}

/* Линия сверху */
.case--marketing .case-result-composition__line {
  position: absolute;
  top: 0;
  left: 48px;
  width: min(calc(100% - 180px), 865px);
  height: 4px;
  background: linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  border-radius: 999px;
}

/* Декоративный элемент IM */
.case--marketing .case-result-composition__im {
  position: absolute;
  top: -21px;
  right: -84px;
  width: clamp(150px, 16vw, 252px);
  height: auto;
  z-index: 3;
  pointer-events: none;
}


/* Карточка внутри композиции */
.case--marketing .case-result-composition__card {
  /* Копируем все стили из .case--marketing .speech */
  position: relative;
  flex: 0 0 auto;
  padding: clamp(32px, 6vw, 80px) clamp(28px, 6vw, 78px);
  border-radius: 33px;
  background: #ffffff;
  border: 7px solid transparent;
  
  /* Градиентная обводка через двойной background */
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  
  /* Специфичные для композиции */
  width: 100%;
  margin: 0;
}

/* Убираем хвостики у карточки в композиции */
.case--marketing .case-result-composition__card::after {
  display: none;
}

/* Текст внутри карточки композиции */
.case--marketing .case-result-composition__text {
  /* Копируем стили из .speech__text */
  font-family: 'Jost', sans-serif;
  font-size: clamp(20px, 2.45vw, 37px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: #000;
  max-width: 946px;
}



/* ============================================
   Секция "ПРОСТО ПОКАЗЫВАЕМ"
   ============================================ */

.case--marketing .case-more {
  position: relative;
  width: 100%;
  padding: 100px 0 120px 0;
  background: linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  overflow: hidden;
}

/* Локальная обёртка (не используем глобальный container) */
.case--marketing .case-more__wrap {
  width: 80%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 150px;
  min-width: 0;
}

/* Заголовок секции */
.case--marketing .case-more__title {
  font-family: 'Jost', sans-serif;
  font-size: 103px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 20px 0;
  opacity: 0.4;
}

/* ============================================
   Аккордеон
   ============================================ */

.case--marketing .case-accordion {
  display: grid;
  grid-template-rows: 1fr 220px 220px; /* По умолчанию первый активный */
  gap: 0;
  height: 750px; /* Базовая высота */
  margin-bottom: 60px;
  transition: grid-template-rows 450ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: grid-template-rows; /* Оптимизация анимации */
  position: relative;
  z-index: 1;
}

/* Блокировка взаимодействий во время анимации */
.case--marketing .case-accordion.is-animating {
  pointer-events: none;
}

/* На десктопе >= 1350px увеличиваем высоту контейнера для больше активной карточки */
@media (min-width: 1350px) {
  .case--marketing .case-accordion {
    height: 1040px;
  }
}

/* Состояния контейнера — фикс 220px для неактивных, 1fr для активного */
.case--marketing .case-accordion.is-active-0 {
  grid-template-rows: 1fr 220px 220px;
}

.case--marketing .case-accordion.is-active-1 {
  grid-template-rows: 220px 1fr 220px;
}

.case--marketing .case-accordion.is-active-2 {
  grid-template-rows: 220px 220px 1fr;
}

.case--marketing .case-accordion.case-accordion--count-1 {
  grid-template-rows: 1fr;
  height: 460px;
}

.case--marketing .case-accordion.case-accordion--count-2 {
  height: 680px;
}

.case--marketing .case-accordion.case-accordion--count-2.is-active-0 {
  grid-template-rows: 1fr 220px;
}

.case--marketing .case-accordion.case-accordion--count-2.is-active-1 {
  grid-template-rows: 220px 1fr;
}

@media (min-width: 1350px) {
  .case--marketing .case-accordion.case-accordion--count-1 {
    height: 600px;
  }

  .case--marketing .case-accordion.case-accordion--count-2 {
    height: 820px;
  }
}

/* Item аккордеона */
.case--marketing .case-accordion__item {
  position: relative;
  overflow: hidden; /* Ограничиваем контент внутри */
  cursor: pointer;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Активный item с padding-bottom для воздуха */
.case--marketing .case-accordion__item.is-active {
  padding-bottom: 56px; /* Увеличен для воздуха до белой линии */
}

/* Последний item без разделителя */
.case--marketing .case-accordion__item:last-child {
  border-bottom: none;
}

/* Контент внутри item */
.case--marketing .case-accordion__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 550px 1fr;
  gap: 60px;
  padding: 24px 0; /* Базовый padding для неактивных */
  align-items: start;
  min-width: 0;
  /* transition на padding УБРАН — меняется только grid-template-rows */
}

/* Увеличенный padding для активного item */
.case--marketing .case-accordion__item.is-active .case-accordion__content {
  padding: 40px 0 0 0; /* Отступ снизу перенесён в item.is-active */
}

/* Левая часть: текст */
.case--marketing .case-accordion__text {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-width: 0;
  height: 100%;
}

/* Надзаголовок */
.case--marketing .case-accordion__subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px 0;
  opacity: 0.6;
}

/* Главный заголовок */
.case--marketing .case-accordion__heading {
  font-family: 'Jost', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.17;
  text-transform: uppercase;
  margin: 0;
  color: #ffffff;
}

/* Описание (только у активного) */
.case--marketing .case-accordion__description {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  margin: 20px 0 0 0;
  opacity: 0;
  transform: translateY(6px); /* Начальная позиция для проявления */
  pointer-events: none; /* Неактивно по умолчанию */
  transition: opacity 250ms ease, transform 250ms ease; /* Быстрое проявление */
}

/* Показываем описание у активного */
.case--marketing .case-accordion__item.is-active .case-accordion__description {
  opacity: 0.8;
  transform: translateY(0); /* Конечная позиция */
  pointer-events: auto;
}

/* Кнопка внутри item */
.case--marketing .case-accordion__button {
  display: inline-block;
  padding: 16px 40px;
  margin-top: 24px;
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border-radius: 0;
  opacity: 0;
  transform: translateY(6px); /* Начальная позиция для проявления */
  pointer-events: none; /* Неактивно по умолчанию */
  transition: opacity 250ms ease, transform 250ms ease, background 300ms ease, color 300ms ease;
  border: 1px solid #ffffff;
  background: linear-gradient(270deg, #4A44E3 0%, #6DE0D4 100%);
  text-align: center;
  font-weight: 400;
}

/* Показываем кнопку у активного */
.case--marketing .case-accordion__item.is-active .case-accordion__button {
  opacity: 1;
  transform: translateY(0); /* Конечная позиция */
  pointer-events: auto;
}

.case--marketing .case-accordion__button:hover {
  background: #ffffff;
  color: #4A44E3;
}

/* Правая часть: картинка */
.case--marketing .case-accordion__image-wrap {
  position: relative;
  width: 100%;
  height: 140px; /* Увеличена для неактивных, чтобы не обрубалась */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  min-width: 0;
  transition: height 450ms cubic-bezier(0.4, 0, 0.2, 1), border-radius 450ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}

/* На десктопе >= 1350px активная картинка выше */
@media (min-width: 1350px) {
  .case--marketing .case-accordion__item.is-active .case-accordion__image-wrap {
    height: 480px; /* Большая картинка на десктопе */
    border-radius: 20px;
  }
}

/* Для экранов < 1350px активная картинка меньше */
@media (max-width: 1349px) {
  .case--marketing .case-accordion__item.is-active .case-accordion__image-wrap {
    height: 340px; /* Меньше для узких экранов */
    border-radius: 20px;
  }
}

/* Картинка */
.case--marketing .case-accordion__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

/* Эффект при hover */
.case--marketing .case-accordion__item:hover .case-accordion__image {
  transform: scale(1.05);
}

/* Статичный режим блока «Просто показываем»: все карточки раскрыты сразу. */
.case--marketing .case-accordion--expanded {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: auto;
  margin-bottom: 60px;
  transition: none;
}

.case--marketing .case-accordion--expanded .case-accordion__item {
  overflow: visible;
  cursor: default;
  padding-bottom: 0;
  border-bottom: none;
}

.case--marketing .case-accordion--expanded .case-accordion__content {
  height: auto;
  padding: 40px 0 0;
}

.case--marketing .case-accordion--expanded .case-accordion__description,
.case--marketing .case-accordion--expanded .case-accordion__button {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.case--marketing .case-accordion--expanded .case-accordion__image-wrap {
  height: 340px;
}

@media (min-width: 1350px) {
  .case--marketing .case-accordion--expanded .case-accordion__image-wrap {
    height: 480px;
  }
}

.case--marketing .case-accordion--expanded .case-accordion__item:hover .case-accordion__image {
  transform: none;
}

/* ============================================
   Кнопка "Все кейсы"
   ============================================ */

.case--marketing .case-more__button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 5;
}

.case--marketing .case-more__button {
  display: inline-block;
  padding: 24px 80px;
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  background: #ffffff;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  width: 100%;
  text-align: center;
  border-radius: 0;
  color: #282828;
}

.case--marketing .case-more__button:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ============================================
   Адаптивность
   ============================================ */

/* ============================================
   Адаптивность для мобильных устройств
   ============================================ */

/* Планшеты и небольшие десктопы */
@media (max-width: 1350px) {
  /* Гибкие отступы для контейнера */
  .case--marketing .case-hero .container {
    padding: 180px 60px 80px 40px;
  }

  .case--marketing .case-hero__title {
    font-size: 72px;
  }

  .case--marketing .case-hero__subtitle {
    font-size: 52px;
  }

  /* Speech блоки адаптируются */
  .case--marketing .speech--left {
    width: auto;
    flex: 1 1 55%;
  }

  .case--marketing .speech--right {
    width: auto;
    flex: 1 1 40%;
  }

  .case--marketing .case-hero__speech {
    gap: 40px;
  }

  .case--marketing .speech__title {
    font-size: 36px;
  }

  .case--marketing .speech__text {
    font-size: 22px;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  /* Компактные отступы */
  .case--marketing {
    overflow-x: hidden;
  }

  .case--marketing .case-hero,
  .case--marketing .case-process,
  .case--marketing .case-result,
  .case--marketing .case-summary,
  .case--marketing .case-result-composition,
  .case--marketing .case-more {
    overflow-x: hidden;
  }

  .case--marketing .case-hero {
    min-height: auto;
    align-items: stretch;
  }

  .case--marketing .case-hero .container {
    padding: 108px 20px 56px;
  }

  .case--marketing .case-hero__head {
    margin-bottom: 36px;
  }

  .case--marketing .case-hero__title {
    font-size: 42px;
    line-height: 1.04;
  }

  .case--marketing .case-hero__subtitle {
    font-size: 28px;
    margin-top: 12px;
    line-height: 1.08;
  }

  .case--marketing .case-hero__speech {
    flex-direction: column;
    gap: 28px;
  }

  /* Speech блоки на полную ширину */
  .case--marketing .speech,
  .case--marketing .speech--left,
  .case--marketing .speech--right {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    margin: 0;
    padding: 24px;
    border-width: 5px;
    border-radius: 18px;
  }

  .case--marketing .speech__title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .case--marketing .speech__text {
    font-size: 18px;
    line-height: 1.35;
  }

  .case--marketing .case-hero__decor--w {
    left: -28px;
    bottom: 132px;
    width: 178px;
    opacity: 0.65;
  }

  .case--marketing .case-hero__decor--arrow {
    top: 78px;
    right: -16px;
    width: 88px;
  }

  .case--marketing .blob {
    width: 320px;
    height: 180px;
    filter: blur(90px);
  }

  .case--marketing .blob--1 {
    top: 0;
    left: -35%;
  }

  .case--marketing .blob--2 {
    top: auto;
    bottom: 10%;
    right: -30%;
  }

  .case--marketing .blob--3,
  .case--marketing .blob--4 {
    display: none;
  }

  .case--marketing .speech--left::after,
  .case--marketing .speech--right::after {
    width: 18px;
    height: 18px;
    bottom: -14px;
  }

  .case--marketing .speech--left::after {
    left: 28px;
    border-left-width: 5px;
    border-bottom-width: 5px;
  }

  .case--marketing .speech--right::after {
    right: 28px;
    border-right-width: 5px;
    border-bottom-width: 5px;
  }

  .case--marketing .itw-case-breadcrumbs--inside-hero {
    position: static;
    margin-top: 28px;
  }

  .case--marketing .itw-case-breadcrumbs--inside-hero .itw-breadcrumbs__list {
    gap: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  /* Отключаем fixed для hero2 на мобилке */
  .case--marketing .case-hero2 {
    height: 44vh;
    min-height: 280px;
    background-attachment: scroll;
  }

  .case--marketing .case-process__wrap {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .case--marketing .case-process__title {
    font-size: 48px;
    margin-bottom: 44px;
  }

  .case--marketing .process-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 64px;
  }

  .case--marketing .process-item__left,
  .case--marketing .process-item__right {
    width: 100%;
  }

  .case--marketing .process-item__axis {
    display: none;
  }

  .case--marketing .process-item__num {
    font-size: 112px;
  }

  .case--marketing .process-item__heading {
    font-size: 26px;
    line-height: 1.08;
  }

  .case--marketing .process-item__subtitle {
    font-size: 20px;
    line-height: 1.24;
  }

  .case--marketing .process-item__list li {
    font-size: 18px;
    line-height: 1.42;
  }

  .case--marketing .case-result {
    min-height: auto;
    padding: 72px 20px 48px;
    align-items: stretch;
  }

  .case--marketing .case-result__title {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 0 28px;
    font-size: 72px;
    font-weight: 800;
    line-height: 0.96;
  }

  .case--marketing .case-result__slider {
    padding: 0;
  }

  .case--marketing .case-result__center {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: none;
    padding: 0;
  }

  .case--marketing .case-result__wm {
    width: 210px;
  }

  .case--marketing .case-result__text {
    max-width: none;
  }

  .case--marketing .case-result__text h3 {
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.08;
  }

  .case--marketing .case-result__text p {
    position: static;
    left: auto;
    font-size: 19px;
    line-height: 1.42;
  }

  .case--marketing .case-summary {
    padding: 0;
  }

  .case--marketing .case-marquee {
    height: 152px;
  }

  .case--marketing .case-marquee__content {
    gap: 36px;
    margin-left: 24px;
  }

  .case--marketing .case-marquee__text {
    font-size: 86px;
  }

  .case--marketing .case-marquee__arrow {
    width: 76px;
    height: 76px;
  }

  .case--marketing .case-result-composition {
    min-height: auto;
    padding: 40px 0 28px;
  }

  .case--marketing .case-result-composition__bg-shapes {
    left: -84px;
    top: 210px;
    width: 150px;
  }

  .case--marketing .case-result-composition__main {
    width: 100%;
    padding-top: 24px;
  }

  .case--marketing .case-result-composition__line {
    top: 0;
    left: 16px;
    width: calc(100% - 72px);
    height: 3px;
  }

  .case--marketing .case-result-composition__im {
    top: 2px;
    right: 6px;
    width: 86px;
  }

  .case--marketing .case-result-composition__card {
    width: 100%;
    padding: 22px 18px;
    border-width: 4px;
    border-radius: 20px;
  }

  .case--marketing .case-result-composition__text {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .case--marketing .case-result-composition__bg-rings,
  .case--marketing .case-result-composition__bg-shapes {
    display: none;
  }

  .case--marketing .case-more {
    padding: 60px 0 72px;
  }

  .case--marketing .case-more__wrap {
    width: 100%;
    padding: 0 20px;
  }

  .case--marketing .case-more__title {
    font-size: 56px;
    margin-bottom: 22px;
  }

  .case--marketing .case-accordion {
    height: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .case--marketing .case-accordion.is-active-0,
  .case--marketing .case-accordion.is-active-1,
  .case--marketing .case-accordion.is-active-2 {
    grid-template-rows: none;
  }

  .case--marketing .case-accordion__item,
  .case--marketing .case-accordion__item.is-active {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .case--marketing .case-accordion__content,
  .case--marketing .case-accordion__item.is-active .case-accordion__content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .case--marketing .case-accordion__text {
    gap: 16px;
    justify-content: flex-start;
  }

  .case--marketing .case-accordion__subtitle {
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
  }

  .case--marketing .case-accordion__heading {
    font-size: 24px;
    line-height: 1.08;
  }

  .case--marketing .case-accordion__description,
  .case--marketing .case-accordion__item.is-active .case-accordion__description,
  .case--marketing .case-accordion__button,
  .case--marketing .case-accordion__item.is-active .case-accordion__button {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .case--marketing .case-accordion__description {
    font-size: 16px;
    line-height: 1.45;
    margin-top: 14px;
  }

  .case--marketing .case-accordion__image-wrap {
    display: block;
    height: 240px;
    border-radius: 14px;
  }

  .case--marketing .case-accordion__item.is-active .case-accordion__image-wrap {
    height: 240px;
  }

  .case--marketing .case-accordion__button {
    display: block;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    font-size: 16px;
    text-align: center;
  }

  .case--marketing .case-more__button {
    padding: 16px 28px;
    font-size: 18px;
  }

  .case--marketing .case-more__button-wrap {
    margin-top: 24px;
  }


  /* Остальные секции */
  .case--marketing .case-process,
  .case--marketing .case-result,
  .case--marketing .case-summary {
    padding: 60px 0;
  }

  .case--marketing .case-more {
    padding: 60px 0 80px 0;
  }
}

/* =========================================================
   АДАПТИВ РАЗДЕЛА: CASE BITRIX (ПОДХОД MOBILE MOBILE-OVERRIDES)
   ========================================================= */

/* --- Планшеты (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .case--marketing .case-process__title { font-size: 56px; }
  .case--marketing .process-item { grid-template-columns: 240px 80px 1fr; gap: 40px; }
  .case--marketing .process-item__num { font-size: 140px; }
  .case--marketing .case-marquee__text { font-size: 110px; }
  
  /* Аккордеон: отключаем сложную сетку контента, ставим в колонку */
  .case--marketing .case-accordion__content { grid-template-columns: 1fr; gap: 24px; }
  .case--marketing .case-accordion__image-wrap { display: none; }
}

/* --- Мобильные (max-width: 640px) --- */
@media (max-width: 640px) {
  /* Типографика гигантских заголовков */
  .case--marketing .case-process__title { font-size: 42px; margin-bottom: 40px; }
  .case--marketing .case-process {
    padding: 56px 0 24px;
  }

  .case--marketing .case-process__wrap {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .case--marketing .case-result {
    min-height: auto;
    padding: 72px 0 48px;
    align-items: stretch;
  }

  .case--marketing .case-result {
    padding: 64px 16px 44px;
  }

  .case--marketing .case-result__title {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 0 28px;
    font-size: 56px;
    line-height: 0.96;
  }

  .case--marketing .case-result__slider {
    padding: 0;
  }

  .case--marketing .case-result__center {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  .case--marketing .case-result__text {
    max-width: none;
  }

  .case--marketing .case-result__text h3 {
    margin-bottom: 16px;
    font-size: 28px;
    line-height: 1.08;
  }

  .case--marketing .case-result__text p {
    position: static;
    left: auto;
    font-size: 18px;
    line-height: 1.4;
    opacity: 0.96;
  }

  .case--marketing .case-marquee__text { font-size: 72px; }
  .case--marketing .case-more__title { font-size: 48px; }
  
  /* Таймлайн (процесс) на мобилке ставим вертикально */
  .case--marketing .process-item { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    padding-bottom: 60px; 
  }

  .case--marketing .process-item__left,
  .case--marketing .process-item__right {
    width: 100%;
  }

  .case--marketing .process-item__axis { display: none; /* Скрываем ось с линией на мобилке для экономии места */ }
  .case--marketing .process-item__left {
    display: flex;
    flex-direction: column;
  }
  .case--marketing .process-item__num { order: 1; font-size: 100px; text-align: left; }
  .case--marketing .process-item__heading { order: 2; font-size: 24px; line-height: 1.08; }
  .case--marketing .process-item__subtitle { font-size: 19px; line-height: 1.22; }
  .case--marketing .process-item__content { gap: 14px; }
  .case--marketing .process-item__list { padding-left: 18px; }
  .case--marketing .process-item__list li { font-size: 17px; line-height: 1.42; margin-bottom: 10px; padding-left: 10px; }
  .case--marketing .process-item__list li::before {
    left: -10px;
    font-size: 24px;
    line-height: 1;
  }
  
  /* Карточки результата и композиции */
  .case--marketing .case-result__center { flex-direction: column; padding: 0; }
  .case--marketing .case-result__wm { width: 180px; }
  .case--marketing .case-summary {
    padding: 0;
  }
  .case--marketing .case-marquee {
    height: 136px;
  }
  .case--marketing .case-marquee__content {
    gap: 28px;
    margin-left: 20px;
  }
  .case--marketing .case-marquee__arrow {
    width: 64px;
    height: 64px;
  }
  .case--marketing .case-result-composition {
    min-height: auto;
    padding: 84px 16px 48px;
  }
  .case--marketing .case-result__blob {
    width: 320px;
    height: 180px;
    filter: blur(92px);
  }
  .case--marketing .case-result__blob--1 {
    top: 6%;
    left: -48%;
  }
  .case--marketing .case-result__blob--2 {
    right: -42%;
    bottom: 0;
  }
  .case--marketing .case-result-composition__main { width: 100%; padding-top: 24px; }
  .case--marketing .case-result-composition__line {
    top: 0;
    left: 16px;
    right: auto;
    width: calc(100% - 72px);
    height: 3px;
  }
  .case--marketing .case-result-composition__im {
    top: 2px;
    right: 6px;
    width: 86px;
  }
  .case--marketing .case-result-composition__card {
    width: 100%;
    padding: 22px 18px;
    border-width: 4px;
    border-radius: 20px;
  }
  .case--marketing .case-result-composition__text {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .case--marketing .case-result-composition__bg-rings,
  .case--marketing .case-result-composition__bg-shapes { display: none; }
  
  .case--marketing .case-more {
    padding: 56px 0 64px;
  }

  .case--marketing .case-more__wrap { width: 100%; padding: 0 16px; }

  .case--marketing .case-more__title {
    margin-bottom: 20px;
  }

  /* Аккордеон как стек карточек */
  .case--marketing .case-accordion {
    height: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .case--marketing .case-accordion.is-active-0,
  .case--marketing .case-accordion.is-active-1,
  .case--marketing .case-accordion.is-active-2 {
    grid-template-rows: none;
  }

  .case--marketing .case-accordion__item,
  .case--marketing .case-accordion__item.is-active {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .case--marketing .case-accordion__content,
  .case--marketing .case-accordion__item.is-active .case-accordion__content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .case--marketing .case-accordion__text {
    gap: 16px;
    justify-content: flex-start;
  }

  .case--marketing .case-accordion__subtitle {
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
  }

  .case--marketing .case-accordion__heading { font-size: 24px; line-height: 1.08; }

  .case--marketing .case-accordion__description,
  .case--marketing .case-accordion__item.is-active .case-accordion__description,
  .case--marketing .case-accordion__button,
  .case--marketing .case-accordion__item.is-active .case-accordion__button {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .case--marketing .case-accordion__description {
    font-size: 16px;
    line-height: 1.45;
    margin-top: 14px;
  }

  .case--marketing .case-accordion__image-wrap {
    display: block;
    height: 220px;
    border-radius: 14px;
  }

  .case--marketing .case-accordion__item.is-active .case-accordion__image-wrap {
    height: 220px;
  }

  .case--marketing .case-accordion__button {
    display: inline-flex;
    align-self: flex-start;
    justify-content: center;
    width: auto;
    min-width: 220px;
    max-width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    font-size: 16px;
    white-space: nowrap;
  }

  .case--marketing .case-more__button { padding: 16px 32px; font-size: 18px; }
  .case--marketing .case-more__button-wrap {
    margin-top: 24px;
  }
}

/* --- Мелкие экраны (max-width: 480px) --- */
@media (max-width: 480px) {
  .case--marketing .case-hero .container {
    padding: 100px 12px 44px;
  }

  .case--marketing .case-hero__title {
    font-size: 34px;
  }

  .case--marketing .case-hero__subtitle {
    font-size: 22px;
  }

  .case--marketing .speech,
  .case--marketing .speech--left,
  .case--marketing .speech--right {
    padding: 20px 18px;
  }

  .case--marketing .speech__title {
    font-size: 22px;
  }

  .case--marketing .speech__text {
    font-size: 16px;
  }

  .case--marketing .case-process__title { font-size: 32px; }
.case--marketing .process-item { gap: 7px; padding-bottom: 44px; }
.case--marketing .process-item__num { font-size: 80px; }
.case--marketing .process-item__heading { font-size: 21px; }
.case--marketing .process-item__subtitle { font-size: 17px; }
.case--marketing .process-item__list li { font-size: 15px; }
.case--marketing .process-item__list li::before { font-size: 22px; left: -10px; }
.case--marketing .case-result__title { font-size: 56px; font-weight: 800; margin: 0 0 28px; }
  .case--marketing .case-result__slider { padding-left: 0; padding-right: 0; }
  .case--marketing .case-result__text h3 { font-size: 24px; }
  .case--marketing .case-result__text p { font-size: 16px; }
  .case--marketing .case-marquee__text { font-size: 52px; }
  .case--marketing .case-marquee { height: 160px; }
  .case--marketing .case-result-composition { padding: 32px 0 24px; }
  .case--marketing .case-result-composition__bg-shapes { left: -72px; top: 184px; width: 126px; }
  .case--marketing .case-result-composition__im { width: 72px; }
  .case--marketing .case-more__title { font-size: 36px; }
  .case--marketing .case-more__wrap { padding: 0 12px; }
  .case--marketing .case-accordion { gap: 12px; }
  .case--marketing .case-accordion__content,
  .case--marketing .case-accordion__item.is-active .case-accordion__content { padding: 16px; }
  .case--marketing .case-accordion__heading { font-size: 21px; }
  .case--marketing .case-accordion__description { font-size: 15px; }
  .case--marketing .case-accordion__image-wrap,
  .case--marketing .case-accordion__item.is-active .case-accordion__image-wrap { height: 184px; }
  .case--marketing .case-accordion__button {
    display: inline-flex;
    width: auto;
    min-width: min(220px, 100%);
    max-width: 100%;
    font-size: 15px;
  }
  .case--marketing .case-more__button { width: 100%; padding: 14px 20px; font-size: 16px; }
}

/* --- Очень узкие экраны (max-width: 360px) --- */
@media (max-width: 360px) {
  .case--marketing .case-process__title { font-size: 26px; }
.case--marketing .case-result { padding: 56px 16px 40px; }
.case--marketing .case-result__title { font-size: 42px; font-weight: 800; margin: 0 0 24px; }
  .case--marketing .case-marquee__text { font-size: 40px; }
  .case--marketing .process-item__heading { font-size: 22px; }
}

