/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/.header-transparent #Top_bar .menu > li > a:after {
  background: #FFFFFF;
}

#Footer .footer_copy {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* цвет кнопки загрузки */
label#spec_label {
  background: #1b1b4f;
}
input[type="file"]#spec_file {
  display: none;
}

p.content-module {
  color: #161765;
  font-family: Open Sans, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-variant-ligatures: normal;
  font-variant-caps: normal;
  font-weight: 500;
}
/*Цвет кнопки отправки письма*/
.wpcf7 input[type="submit"] {
  background-color: #1b1b4f !important;
  color: #fff !important;
}

/*Скрытие кнопки "выбрать файл"*/
.wpcf7-form-control-wrap.spec_file input.wpcf7-file {
  height: 0;
  width: 0;
  overflow: hidden;
  background-color: #161765;
}

label#spec_label {
  background: #161765;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
  text-align: center;
  line-height: normal;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0;
  outline: none;
  padding: 11px 20px;
  position: relative;
  vertical-align: middle;
  margin-bottom: 5px;
}

label#spec_label + br {
  display: none;
}

.wpcf7-form-control-wrap.spec_file{
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: visible;
  position: absolute;
  z-index: -1;
}

@media only screen and (max-width: 959px) and (min-width: 768px) {
  label#spec_label {
    font-size: 14px;
  }
}
@media only screen and (max-width: 767px) and (min-width: 480px){
  label#spec_label {
    font-size: 13px;
  }
}
@media only screen and (max-width: 479px){
  label#spec_label {
    font-size: 13px;
  }
}

/* page-id padding reset */
.page-id-39 #Content,
.page-id-2206 #Content,
.page-id-41 #Content,
.page-id-1917 #Content,
.page-id-1927 #Content,
.page-id-1954 #Content,
.page-id-2189 #Content,
.page-id-2223 #Content,
.page-id-2240 #Content,
.page-id-2204 #Content,
.page-id-2242 #Content,
.page-id-2248 #Content,
.page-id-2230 #Content,
.page-id-2325 #Content,
.page-id-2373 #Content,
.page-id-2403 #Content,
.page-id-66 #Content
 {
  padding-top: 0;
}
.page-id-39 .content_wrapper,
.page-id-2206 .content_wrapper,
.page-id-41 .content_wrapper,
.page-id-1917 .content_wrapper,
.page-id-1927 .content_wrapper,
.page-id-1954 .content_wrapper,
.page-id-2189 .content_wrapper,
.page-id-2223 .content_wrapper,
.page-id-2240 .content_wrapper,
.page-id-2204 .content_wrapper,
.page-id-2242 .content_wrapper,
.page-id-2248 .content_wrapper,
.page-id-2230 .content_wrapper,
.page-id-2325 .content_wrapper,
.page-id-2373 .content_wrapper,
.page-id-2403 .content_wrapper,
.page-id-66 .content_wrapper
{
  padding-top: 0;
}

/* === Убираем подчёркивание ссылок глобально === */
a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
}
/* Футер: четыре колонки растянуты по ширине контейнера (первая у левого края, последняя у правого),
   иначе узкая колонка Company оставляет пустоту справа и блок выглядит сдвинутым влево. 2026-10-19 */
@media (min-width: 960px) {
  #Footer .widgets_wrapper .container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }
  #Footer .widgets_wrapper .container::before,
  #Footer .widgets_wrapper .container::after {
    display: none; /* clearfix-псевдоэлементы темы иначе становятся flex-элементами и съедают ширину */
  }
  #Footer .widgets_wrapper .container > .column.one-fourth {
    width: auto;
    flex: 0 1 auto;
    margin: 0;
  }
}


/* Телефон: логотип в шапке был вплотную к краю тёмной полосы (50 px из 61) — уменьшаем, чтобы по краям были равные отступы. 2026-10-20 */
@media (max-width: 767px) {
  #Top_bar .logo img.logo-mobile { height: 40px !important; width: auto !important; max-height: none !important; margin-top: 2px !important; }
}

/* Телефон: кнопка повторного открытия настроек cookie (CookieYes) мешала читать текст слева — уменьшаем и сдвигаем вправо. 2026-10-20 */
@media (max-width: 767px) {
  .cky-btn-revisit-wrapper { left: auto !important; right: 12px !important; bottom: 12px !important; width: 34px !important; height: 34px !important; }
  .cky-btn-revisit-wrapper img { width: 18px !important; height: 18px !important; }
}
.post-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}

/* Слой с текстом поверх картинки */
.post-card__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;   /* вот это ключевое */
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  color: #fff;
}
/* Псевдокнопка-типа поста */
.post-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9); /* белая граница */
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
/* Заголовок */
.post-card__title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  color: #fff;
}

/* Автор/мета */
.post-card__meta {
  font-size: 13px;
  opacity: 0.9;
}

/* Обертка для картинки */
.post-card__image {
  position: relative;
  height: 320px;           /* подгони под дизайн */
  overflow: hidden;
}

/* Картинка */
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;   /* zoom-in анимация */
}

/* Затемняющий фильтр поверх картинки */
.post-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);   /* исходное приглушение */
  transition: background 0.4s ease;  /* плавное изменение затемнения */
}

/* Ховер-эффект: сильнее затемняем + приближаем картинку */
.post-card:hover .post-card__image img {
  transform: scale(1.05);           /* легкий zoom-in */
}

.post-card:hover .post-card__image::after {
  background: rgba(0, 0, 0, 0.75);  /* ещё темнее при ховере */
}.team-list-yellow .mfn-list-icon {
  background: transparent !important;
  color: inherit !important;
}

.team-list-yellow .mfn-list-icon i {
  color: #FFC107 !important;
}/* Анимированный фон фирменных полос. 2026-10-20
   1) .g24-flow — узкие полосы (секции) с фирменным градиентом #3F51B5 <-> #673AB7: двухцветный градиент плавно «плывёт» (2.8 s).
      Класс ставит js/gradient-flow.js. Hero НЕ трогаем: его градиент лежит на слое .mcb-background-overlay, скрипт слои не размечает.
   2) .mcb-section:has(.g24f) — любая секция с формой обратной связи: многоцветный градиент (11.2 s), текст светлый. Без правки страниц.
   Движение — transform на GPU, а не background-position. Скорость — одно число в animation. */

/* 1. узкие полосы */
.mcb-section.g24-flow { position: relative; overflow: hidden; background-image: none !important; background-color: #3F51B5; }
.mcb-section.g24-flow::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background: linear-gradient(var(--g24-angle, 277deg), var(--g24-a) 0%, var(--g24-b) 50%, var(--g24-a) 100%);
  transform: translate3d(-50%, 0, 0);          /* стартовый кадр = исходный вид полосы */
  animation: g24-flow 2.8s ease-in-out infinite alternate;
  will-change: transform; pointer-events: none; z-index: 0;
}
.mcb-section.g24-flow > .section_wrapper { position: relative; z-index: 2; }

/* 2. секции с формой: палитра фиолетовый > индиго > тёмный бирюзовый (из точек логотипа, затемнён ради контраста с белым) > индиго > пурпурный */
.mcb-section:has(.g24f) { position: relative; overflow: hidden; background-image: none !important; background-color: #3F51B5; }
.mcb-section:has(.g24f)::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background: linear-gradient(277deg, #673AB7 0%, #3F51B5 22%, #00838F 50%, #3F51B5 78%, #7B1FA2 100%);
  transform: translate3d(-50%, 0, 0);
  animation: g24-flow 11.2s ease-in-out infinite alternate;
  will-change: transform; pointer-events: none; z-index: 0;
}
.mcb-section:has(.g24f) > .section_wrapper { position: relative; z-index: 2; }
/* Секция с формой тёмная: ВЕСЬ текст вне карточки формы и вне кнопок — светлый (отзывы, подписи, списки, ссылки и т.п.) */
.mcb-section:has(.g24f) .section_wrapper :where(:not(.g24f):not(.g24f *):not(.button):not(.button *):not(svg *)) { color: #fff !important; }
.mcb-section:has(.g24f) .section_wrapper a:where(:not(.g24f *):not(.button)) { color: #FFC107 !important; }
/* отзыв (blockquote): линии подчёркивания и кавычки темы тёмные — делаем светлыми */
.mcb-section:has(.g24f) .blockquote blockquote { text-decoration-color: rgba(255, 255, 255, .3) !important; }
.mcb-section:has(.g24f) .blockquote .mfn-blockquote-icon, .mcb-section:has(.g24f) .blockquote .mfn-blockquote-icon i { color: rgba(255, 255, 255, .3) !important; }
.mcb-section:has(.g24f) .blockquote .author i { color: #80DEEA !important; }

/* Вертикальные отступы секции с формой: на белом фоне были незаметны, на цветном контент прилипал к краю полосы */
.mcb-section:has(.g24f) { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 767px) { .mcb-section:has(.g24f) { padding-top: 50px; padding-bottom: 50px; } }

@keyframes g24-flow { to { transform: translate3d(0, 0, 0); } }
/* телефон и «уменьшить анимацию»: форма — статичный многоцветный фон; узкие полосы скрипт на телефоне не размечает */
@media (max-width: 767px), (prefers-reduced-motion: reduce) { .mcb-section:has(.g24f)::before { animation: none; } }
/* Contact Form 7 (form 1875): карточка с полями в две колонки. Разметка — в шаблоне формы CF7 (.g24f). 2026-10-19 */
.g24f {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.18);
  padding: 36px 40px 40px;
  color: #252525;
  text-align: left;
}
/* CF7 автоматически оборачивает строки в <p>/<br> — нейтрализуем, чтобы сетка работала */
.g24f p { display: contents; margin: 0; }
.g24f br { display: none; }
.g24f a { color: #3F51B5 !important; text-decoration: underline; }
.g24f__row > label { min-width: 0; }
.g24f__title { margin: 0 0 6px; font-size: 26px; line-height: 1.2; color: #1a1a2e; }
.g24f__lead { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: #555; }
.g24f__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.g24f label { display: block; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5a5a78; }
.g24f label .req { color: #673AB7; }
.g24f .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.g24f input[type="text"], .g24f input[type="email"], .g24f select, .g24f textarea {
  width: 100% !important; max-width: none !important; box-sizing: border-box; margin: 0; padding: 12px 14px;
  background: #f5f7fb !important; color: #1a1a2e !important; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none;
  border: 1px solid #e1e5f2 !important; border-bottom: 2px solid #c9d0ea !important; border-radius: 6px; box-shadow: none !important; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.g24f textarea { min-height: 130px; resize: vertical; }
.g24f input:focus, .g24f select:focus, .g24f textarea:focus { background: #fff !important; border-color: #3F51B5 !important; }
.g24f .wpcf7-not-valid { border-color: #d32f2f !important; }
.g24f .wpcf7-not-valid-tip { font-size: 12px; margin-top: 4px; color: #d32f2f; letter-spacing: 0; text-transform: none; font-weight: 400; }
/* файл: вторичная кнопка */
.g24f #spec_label {
  display: inline-block; width: auto; margin: 0 0 18px; padding: 9px 18px; cursor: pointer;
  background: transparent !important; color: #3F51B5 !important; border: 1px solid #3F51B5; border-radius: 30px;
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: center;
}
.g24f #spec_label:hover { background: #3F51B5 !important; color: #fff !important; }
.g24f__hint { display: block; margin: -8px 0 18px; font-size: 12px; color: #7a7a95; text-transform: none; letter-spacing: 0; font-weight: 400; }
/* согласие */
.g24f .wpcf7-acceptance { display: block; margin: 0 0 20px; }
.g24f .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.5; font-weight: 400; letter-spacing: 0; text-transform: none; color: #555; }
.g24f .wpcf7-list-item { margin: 0 !important; }
.g24f .wpcf7-acceptance input { margin-top: 3px; flex: none; }
.g24f .wpcf7-acceptance a { color: #3F51B5; text-decoration: underline; }
/* отправка */
.g24f input[type="submit"] {
  background: #FFC107 !important; color: #000 !important; border: 0; border-radius: 30px; padding: 14px 36px;
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.g24f input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 193, 7, .45); }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; border-radius: 6px; font-size: 14px; }
@media (max-width: 767px) {
  .g24f { padding: 26px 20px 28px; }
  .g24f__row { grid-template-columns: 1fr; }
}
.g24f__hint.is-attached { color: #2e7d32; font-weight: 600; font-size: 13px; word-break: break-all; }
/*------------------НОВЫЕ КАРТОЧКИ SERVICES С НУЛЯ----------------------------*/
.sj-services-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.sj-card-new {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  padding: 28px 32px 36px 32px !important;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #2c3e50;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Фиолетовый фон карточки на ховер */
.sj-card-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(277deg, #3F51B5 0%, #673AB7 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.sj-card-new:hover::before {
  opacity: 1;
}

.sj-card-new:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  color: #ffffff;
}

/* Иконка */
.sj-card-icon {
  margin: 0 0 18px 0 !important;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #ffffff;          /* белый фон под иконкой */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* обычное состояние — фиолетовая иконка */
.sj-card-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(29%) sepia(93%) saturate(500%) hue-rotate(210deg);
  transition: filter 0.2s ease;
}


/* убираем фиолетовый прямоугольник */
.sj-card-icon::before {
  content: none;
}

/* Разделитель */
.sj-divider {
  width: 48px;
  height: 2px;
  background: #e0e6ed;
  margin: 12px auto 24px auto !important;
  border: none;
  position: relative;
  z-index: 2;
}

.sj-card-new:hover .sj-divider {
  background: rgba(255,255,255,0.4) !important;
}

/* Контент */
.sj-card-content {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 2;
}

.sj-card-new h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: inherit;
}

.sj-card-new p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 auto;
  opacity: 0.9;
}

.sj-card-link {
  font-size: 15px;
  font-weight: 600;
  color: #3F51B5;
  align-self: flex-end;
  margin-top: auto;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.sj-card-new:hover h3 {
  color: #ffffff !important;
}

.sj-card-new:hover .sj-card-link {
  color: rgba(255,255,255,0.95) !important;
}

.sj-card-new:hover .sj-card-icon {
  background: transparent;
}
.sj-card-new:hover .sj-card-icon img {
  filter: brightness(0) invert(1);
}

.sj-card-new:hover .sj-card-icon::before {
  opacity: 0;
}

/* Адаптив */
@media (max-width: 959px) and (min-width: 768px) {
  .sj-services-new {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .sj-services-new {
    grid-template-columns: repeat(1, 1fr);
  }
  .sj-card-new {
    flex-direction: column;
    text-align: center;
  }
  .sj-card-icon {
    margin: 0 0 20px 0;
  }
}
/*--------------------------------------КОНЕЦ НОВЫХ КАРТОЧЕК-------------------------------------*//*-------------------------------------Карточки кейсов--------------------------------------*/
.sj-cases-section {
  width: 100%;
	background: #ffffff; /* ← добавь эту строку */
  max-width: 100%;
  overflow: hidden;
}

.sj-cases-heading {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  margin: 140px auto 80px;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

.sj-cases-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
	background: transparent; /* ← добавь, если нужно */
}

/* Контейнер слайдера - fullwidth */
.sj-cases-slider-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

/* Swiper настройки */
.sj-cases-swiper {
  width: 100%;
  overflow: visible;
}

.sj-cases-swiper .swiper-slide {
  display: flex;
  align-items: stretch;
  min-height: 420px;
	padding-bottom: 60px !important;
}

/* Внутренний контейнер слайда - содержит фон и карточку */
.sj-cases-slide-inner {
  display: flex;
  width: 100%;
  border-radius: 24px;
  overflow: visible !important;
  box-shadow: none;
  position: relative;
	padding: 20px 20px 40px 0; /* top right bottom left */
  box-sizing: border-box;
	max-width: 1320px;
  margin: 0 auto;
	align-items: center;
}

/* Фоновая часть (слева, ~60%) */
.sj-cases-bg-wrapper {
  flex: 0 0 52%;
	height: 600px; 
	border-radius: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
	min-height: 360px;
}

/* Карточка с контентом (справа, ~55%, с небольшим наложением) */
.sj-cases-card {
  position: absolute;
  top: 50%;
 /* right: 200px;*/
  height: 500px;
  max-width: 56%;             /* ширина карточки */
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px 32px;
  box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.2); /* тень */
  margin-left: 30%;
	margin-bottom: 50%;
  display: flex;
  flex-direction: column;
  gap: 16px;

  transform: translateY(-50%); /* центр по вертикали фона */
  z-index: 2;
}

.sj-cases-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 24px;
  border-radius: 999px;
  background: #9C27B0;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  max-width: max-content;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.sj-cases-title {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 700;
}

.sj-cases-text {
  margin: 0 0 16px;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.6;
}

.sj-cases-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: auto;
}

.sj-cases-tech-label {
  font-weight: 600;
  font-size: 13px;
  color: #222;
  margin-right: 4px;
}

.sj-cases-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
  flex: 1 1 100%;
}

.sj-cases-tech-item {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  white-space: nowrap; /* чип не ломается на две строки — переносится целиком */
}

.sj-cases-btn {
  margin-top: 20px;
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: 999px;
  background: #FFC107;
  color: #000000;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sj-cases-btn:hover {
  background: #FFB300;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255,193,7,0.4);
}

/* Пагинация */
.sj-cases-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: -10px !important;
  justify-content: center;
  position: relative; /* отрицательный margin заводит точки под .sj-cases-wrapper, и ховер ловила только нижняя часть точки */
  z-index: 2;
}

.sj-cases-page {
  width: 15px !important;
  height: 15px !important;
  border-radius: 999px;
  background: #e1e3e8;
  padding: 0 !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  color: transparent;
  font-size: 0;
}

.sj-cases-page:hover {
  background: #FFD54F;
}

.sj-cases-page.is-active {
  background: #FFC107;
}

/* Стрелки навигации */
.sj-cases-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
  transition: all 0.2s ease;
}

.sj-cases-arrow:hover {
  background-color: #FFEB3B;
  border-color: #FFC107;
  transform: translateY(-50%) scale(1.1);
}

.sj-cases-arrow--prev { left: 40px; }
.sj-cases-arrow--next { right: 40px; }

.sj-cases-arrow__icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Адаптив */
@media (max-width: 959px) {
  .sj-cases-slide-inner {
    flex-direction: column;
    max-width: 700px;
    padding: 0 16px 8px; /* было 40px: вместе с отступом слайда давало ~70px до точек */
    box-sizing: border-box;
    align-items: center;
  }

  .sj-cases-bg-wrapper {
    width: 100%;
    max-width: 640px;
    height: 320px;      /* чуть ниже, чем было */
    margin: 0 auto;
  }

  .sj-cases-card {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    max-width: 88%;
    margin: -250px auto 0;   /* заезд на фон, регулируем высотой */
    padding: 20px 22px 24px;
    height: auto;
  }

  .sj-cases-arrow {
    display: none;
  }
	.sj-cases-pagination {
    margin-top: 0 !important; /* раньше -60px: точки заезжали на карточку с длинным текстом */
  }
  .sj-cases-swiper .swiper-slide {
    padding-bottom: 16px !important;
  }
}

@media (max-width: 767px) {
  .sj-cases-heading {
    font-size: 26px;
    text-align: left;
    margin: 40px 16px 24px;
  }

  .sj-cases-slide-inner {
    max-width: 100%;
    padding: 0 12px 8px;
    box-sizing: border-box;
    align-items: center;
  }

  .sj-cases-bg-wrapper {
    width: 100%;
    max-width: 480px;
    height: 260px;          /* ниже, чтобы пара фон+карточка влезала */
    margin: 0 auto;
  }

  .sj-cases-card {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    max-width: 92%;
    margin: -320px auto 0;  /* заезд на фон, подгони по вкусу */
    padding: 20px 18px 22px;
    height: auto;
  }

  .sj-cases-title {
    font-size: 20px;
  }

  .sj-cases-arrow {
    display: none;
  }

  .sj-cases-pagination {
    margin-top: 0 !important; /* раньше -100px: точки заезжали на карточку */
  }
}
/*----------------------------------------------------конец карточек кейсов---------------------------------------*/
/* Телефон: 10 точек должны стоять в один ряд (раньше переносились на вторую строку). 2026-10-20 */
@media (max-width: 767px) {
  .sj-cases-pagination { gap: 12px; flex-wrap: nowrap; }
  .sj-cases-page { width: 12px !important; height: 12px !important; flex: 0 0 12px; }
}

/* Планшет и телефон (до 959 px): вместо точек — стрелки под карточкой, свайп остаётся. Десктоп без изменений. 2026-10-20
   Причина: на телефоне точки не переключались при свайпе и прыгали по высоте вслед за высотой карточки. */
@media (max-width: 959px) {
  .sj-cases-pagination { display: none !important; }
  .sj-cases-wrapper { padding-bottom: 76px; }
  .sj-cases-arrow { display: inline-flex !important; top: auto; bottom: 14px; transform: none; }
  .sj-cases-arrow:hover { transform: none; }
  .sj-cases-arrow--prev { left: calc(50% - 58px); right: auto; }
  .sj-cases-arrow--next { left: calc(50% + 14px); right: auto; }
}
/*-------------------------------------------------- базовая обертка блока engagement-models -----------------------*/
.engagement-models {
  padding: 80px 0;
}

.engagement-models .em-title {
  text-align: center;
  margin-bottom: 40px;
}

/* табы: десктоп и планшет по умолчанию */
.engagement-models .em-tabs {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-bottom: 30px;
  text-align: center;
}

.engagement-models .em-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;

  display: flex;
  flex-direction: column;   /* иконка сверху, текст снизу */
  align-items: center;
}

.engagement-models .em-tab .em-icon {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 0 10px 0;       /* отступ только вниз */
  border-radius: 50%;
  background-color: #f3f3f3;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90% 90%;
}

/* конкретные иконки */
.engagement-models .em-icon-dedicated {
  background-image: url(//24gen.space/wp-content/uploads/2019/05/icons8-group-96-1.png);
}

.engagement-models .em-icon-fixed {
  background-image: url(//24gen.space/wp-content/uploads/2019/05/icons8-system-information-96-1.png);
}

.engagement-models .em-icon-tm {
  background-image: url(//24gen.space/wp-content/uploads/2019/05/icons8-settings-96-1.png);
}

.engagement-models .em-tab .em-tab-title {
  display: block;
  font-weight: 600;
  color: #1b1b4f;
}

/* активный таб */
.engagement-models .em-tab.active .em-tab-title {
  color: #1b1b4f;
}

/* линия под табами */
.engagement-models .em-line {
  position: relative;
  height: 4px;
  background: #e5e5e5;
  margin-bottom: 30px;
}

.engagement-models .em-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 33.3333%;
  background: linear-gradient(90deg, #673AB7, #9C27B0);
  transition: transform 0.3s ease;
}

/* контент */
.engagement-models .em-contents {
  max-width: 980px;
  margin: 0 auto;
}

.engagement-models .em-content {
  display: none;
}
.engagement-models .em-bottom {
  max-width: 980px;
  margin: 0 auto;
}
.engagement-models .em-content.active {
  display: block;
}

/*-------------------------- планшеты 768–959px --------------------------*/
@media (min-width: 768px) and (max-width: 959px) {
  .engagement-models .em-tabs {
    gap: 60px;                 /* меньше зазор между табами */
  }

  .engagement-models .em-tab {
    max-width: 190px;
  }

  .engagement-models .em-tab .em-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background-size: 70% 70%;
  }

  .engagement-models .em-tab .em-tab-title {
    font-size: 15px;
    line-height: 1.3;
  }
}

/*-------------------------- телефоны до 767px --------------------------*/
@media (max-width: 767px) {
  .engagement-models .em-tabs {
    justify-content: space-between;
    gap: 0;
  }

  .engagement-models .em-tab {
    flex: 1 1 0;
    align-items: center;
  }

  .engagement-models .em-tab .em-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    flex-shrink: 0;
    background-size: 70% 70%;
  }

  .engagement-models .em-tab .em-tab-title {
    max-width: 90px;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }
}
/*-------------------------------------------------- конец базовой обертки блока engagement-models -----------------------*/.case-card {
  position: relative;
  display: block;
  border-radius: 24px;              /* как в референсе */
  overflow: hidden;
}

/* контейнер картинки */
.case-card__image {
  position: relative;
  height: 360px;                    /* подгони под сетку */
  overflow: hidden;
}

/* сама картинка */
.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
}

/* затемняющий слой (без ховера — легкий) */
.case-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  transition: background 0.4s ease;
}

/* текстовый слой */
.case-card__overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
  color: #fff;
}
.case-card__badge-wrapper {
  position: absolute;
  top: 24px;
  left: 24px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* бейдж кейса */
.case-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.25);
  color: #000;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* заголовок кейса */
.case-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  color: #FFFFFF;
  opacity: 1;
  transition: opacity 0.3s ease;
}
/* при ховере по карточке – исчезают надписи*/
.case-card:hover .case-card__badge-wrapper,
.case-card:hover .case-card__title {
  opacity: 0;
}

/* Ховер: сильнее затемняем + зум картинки */
.case-card:hover .case-card__image img {
  transform: scale(1.05);
}

.case-card:hover .case-card__image::after {
  background: rgba(0, 0, 0, 0.15);
}/* Фон секции */
.scs-wrap {
  /*background: linear-gradient(277deg, #673AB7 0%, #3F51B5 100%);*/
  color: #ffffff;
  padding: 0px 0 40px ;
  width: 100%;
}

/* Контейнер */
.scs-container {
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Сетка карточек */
.scs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Обычная карточка */
.scs-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 36px 32px;
  color: #252525;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 280px;
}

.scs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.scs-card img {
  display: block;
  width: 70px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 28px;
}

.scs-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1a2e;
}

.scs-card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  color: #444;
}

/* общий hero */
.scs-card--hero {
  grid-column: span 2;
  background: #1b1b4f !important;
  color: #ffffff !important;
  box-sizing: border-box;

  /* выезд за контейнер */
  border-radius: 0;
  margin-left: calc(-1 * (100vw - 1260px) / 2);
  width: calc(100% + (100vw - 1260px) / 2);

  padding-left: calc((100vw - 1260px) / 2 + 40px); /* было 56 – чуть меньше, но главное: одно значение */
}

/* верхняя часть hero – только заголовок */
.scs-card--hero-top {
  margin-top: 00px;                 /* отступ от верхнего края */
  padding-top: 80px;
  padding-bottom: 12px;
  margin-bottom: 0; 
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* нижняя часть hero – только текст */
.scs-card--hero-bottom {
  padding-top: 32px;
  padding-bottom: 16px;
  margin-top: -32px; 
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-left: calc((100vw - 1260px) / 2 + 32px);
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

/* типографика hero */
.scs-card--hero h2 {
  font-size: 62px;
  line-height: 1.1;
  margin: 0;
  color: #ffffff;
}

.scs-card--hero p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}
.scs-card--hero:hover {
  transform: none;
  box-shadow: none;
  cursor: default;
}

/* Невидимая карточка‑плейсхолдер */
.scs-card--placeholder {
  visibility: hidden;
  pointer-events: none;
}

/* Адаптив */
/*@media (max-width: 1440px) {
  .scs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scs-card--hero {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
    padding-left: 0px;
    border-radius: 16px;
  }

  .scs-card--hero-top {
    margin-top: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .scs-card--hero-bottom {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .scs-card--placeholder {
    display: none;
  }
}*/

@media (max-width: 959px) {
  /* общий отступ от краёв для сетки */
  .scs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 20px;         /* 20px слева/справа */
    box-sizing: border-box;
  }

  /* hero-top и hero-bottom – на всю ширину, без выезда */
  .scs-card--hero {
    grid-column: 1 / -1;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    padding-left: 40px;   /* отступ текста от левого края */
    padding-right: 24px;  /* можешь тоже сделать 40px, если нужно */
  }

  .scs-card--hero-top {
    margin-top: 0;
    padding-top: 48px;    /* было больше, подгони: 40–56 */
    padding-bottom: 8px;
  }

  .scs-card--hero-bottom {
    margin-top: -24px; /* по модулю равно gap, чтобы не было щели */
    padding-top: 8px;
    padding-bottom: 8px; /* основной воздух снизу текста */
  }

  /* плейсхолдер не нужен на планшете */
  .scs-card--placeholder {
    display: none;
  }
  .scs-card:not(.scs-card--hero) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* телефон */
@media (max-width: 767px) {
  .scs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;          /* общий отступ от краёв для карточек */
    box-sizing: border-box;
  }
  .scs-card--hero-top h2 {
    font-size: 32px;   /* подгони: 30–34px */
    line-height: 1.2;
  }
  /* hero растягивается на ширину экрана */
  .scs-card--hero {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);

    padding-left: 32px;       /* выравниваем текст с карточками */
    padding-right: 20px;
  }

  /* нижняя часть hero – без щели */
  .scs-card--hero-bottom {
    margin-top: -20px;        /* по модулю равно gap */
  }

  /* плейсхолдер не нужен на мобилке */
  .scs-card--placeholder {
    display: none;
  }
}.tools {
  padding: 60px 0;
}

.tools__title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* градиентная плашка сверху (как в примере) */
.tools {
  position: relative;
}

.tools::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(277deg, #3F51B5, #673AB7);
  /* подгони под свою ширину контейнера */
}

/* сетка карточек */
.tools__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;                 /* имитация линий между ячейками */
  background: #e5e7eb;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

/* карточка */
.tool-card {
  background: #ffffff;
  padding: 40px 20px 32px;
  text-align: center;
}

.tool-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
}

.tool-card__name {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #374151;
}

/* адаптив */
@media (min-width: 1441px) {
  .tools {
    /* 320 слева + 320 справа */
    max-width: calc(100% - 640px);
    margin-left: auto;
    margin-right: auto;
    padding: 60px 0;
  }

  .tools__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .tools__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tools__grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 24px 16px;
  }
}/* максимальная специфичность */
section.layers .layers__grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

section.layers {
  padding: 80px 0 96px !important;
  background: #f5f7fb !important;
  width: 100% !important;
}

section.layers .layers__title {
  font-size: 40px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: left !important;
  color: #1f2933 !important;
  margin: 0 auto 64px !important;
  max-width: 1200px !important;
}

/* >>> ИСПРАВЛЕННЫЕ ИКОНКИ — работают на ВСЕХ img в .layer-card__icon <<< */
section.layers .layer-card__icon img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  display: block !important;
}
  /* яркий фиолетовый */
  filter:
    grayscale(100%)
    sepia(100%)
    hue-rotate(260deg)
    saturate(1200%)
    brightness(90%) !important;
}

section.layers .layer-card__icon {
  margin-bottom: 24px !important;
}

section.layers .layer-card__title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1f2933 !important;
  margin-bottom: 16px !important;
}

section.layers .layer-card__text {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #4b5563 !important;
  max-width: 360px !important;
}

/* МОБАЙЛ (< 768px) */
@media (max-width: 767px) {
  section.layers .layers__grid {
    grid-template-columns: 1fr !important;
  }

  section.layers {
    padding: 48px 0 64px !important;
  }

  section.layers .layers__title {
    font-size: 28px !important;
    text-align: center !important;
  }

  section.layers .layer-card {
    text-align: center !important;
  }

  section.layers .layer-card__text {
    max-width: none !important;
    margin: 0 auto !important;
  }
}

/* ПЛАНШЕТ (768–959px) + НОУТБУК (960–1440px) */
@media (min-width: 768px) and (max-width: 1440px) {
  section.layers {
    padding: 64px 0 80px !important;
  }
}

/* ДЕСКТОП (≥ 1441px) */
@media (min-width: 1441px) {
  section.layers {
    padding: 80px 0 96px !important;
  }
}