/* blog-expert-case.css — эксперт под кнопкой двухшаговой плиты (.pf-xcase__who) и кейс с экспертом
   (lazyblock/zarabatyvaem-na-povtornyh-prodazhah): на WP кейс скрыт (#expert-lead-form{display:none important-флаг}) — у нас тоже, классом.
   Подключается только на страницах с блоком, без important-флаг; слить в следующую версию листа (REPORT.md, «CSS компонентов»). */
.pf-xcase-wp {
  display: none;
}

.pf-xcase__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: rgb(255 255 255 / 72%);
  font-size: 15px;
  line-height: 1.35;
}

.pf-xcase__who img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.pf-xcase__who b {
  display: block;
  color: #fff;
}

/* Цитата эксперта как на WP (.withexpert, 2026-10-30, образец /biruza/): градиентная секция, карточка цитаты и карточка автора.
   Mobile-first; точка WP — 900px. Шаг 2 (форма) — прежняя плита внутри секции, без своего фона. */
.withexpert {
  margin: 60px 0;
  border-radius: 24px;
  background: linear-gradient(147deg, #6f7f9d 0%, #92a3cf 90.48%);
  color: #282828;
  font-size: 16px;
  line-height: 1.4;
}

.withexpert__slide {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  padding: 16px;
  overflow: hidden;
}

.withexpert__slide[hidden] {
  display: none;
}

.withexpert__text {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  border-radius: 24px;
  background: #f1f5fe;
  box-shadow: 0 0 32px rgb(75 97 141 / 40%);
}

.withexpert__text p {
  margin: 0 0 60px;
  color: #1f1f25;
  font-size: 16px;
  line-height: 1.4;
}

.withexpert a.withexpert__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 24px;
  border-radius: 28px;
  background: #4b618e;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.3s ease-in-out;
}

.withexpert a.withexpert__btn svg {
  width: 20px;
  height: 20px;
}

.withexpert a.withexpert__btn svg path {
  fill: #fff;
}

.withexpert__expert {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 -24px;
  padding: 16px 16px 40px;
  border: 1px solid #f0f0f0;
  border-radius: 24px 24px 0 0;
  background: rgb(255 255 255 / 15%);
}

.withexpert__expert img {
  flex: none;
  width: 54px;
  height: 54px;
  margin: 0 0 20px;
  border-radius: 50%;
  object-fit: cover;
}

.withexpert__name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.withexpert__expert-text p {
  margin: 0 0 20px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

/* шаг 2: плита-форма без своего фона, рамки и отступов (селектор усилен под листы блога, без important) */
section.lead-form-articles.lead-form-articles-blue.pf-xcase__form:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  margin: 0;
  padding: 16px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

@media (min-width: 901px) {
  .withexpert {
    margin: 100px 0;
    border-radius: 30px;
  }

  .withexpert__slide {
    flex-direction: row;
    padding: 42px;
  }

  .withexpert__text {
    flex: 1;
    width: auto;
    padding: 32px 42px 32px 32px;
    border-radius: 46px;
  }

  .withexpert__text p {
    font-size: 22px;
  }

  .withexpert a.withexpert__btn {
    width: 360px;
    max-width: 100%;
    padding: 28px;
    font-size: 20px;
  }

  .withexpert a.withexpert__btn svg {
    width: 38px;
    height: 38px;
  }

  .withexpert a.withexpert__btn:hover {
    opacity: 0.8;
  }

  .withexpert__expert {
    flex-direction: column;
    gap: 24px;
    max-width: 340px;
    margin: 0 32px 0 -52px;
    padding: 40px 32px 32px 64px;
    border-radius: 42px;
  }

  .withexpert__expert img {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
  }

  .withexpert__expert-text p {
    line-height: 1.3;
    text-align: center;
  }

  section.lead-form-articles.lead-form-articles-blue.pf-xcase__form:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
    padding: 42px;
  }

  section.lead-form-articles.lead-form-articles-blue.pf-xcase__form:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .info {
    max-width: 720px;
  }

  section.lead-form-articles.lead-form-articles-blue.pf-xcase__form:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .contact-modal__field {
    width: 100%;
    max-width: 548px;
  }
}
