/* Вариант A: intro → тезисы → горизонтальная цитата. Откат — см. _rollback/ROLLBACK-company-facts.md */

.lp-company-facts--layout-editorial .lp-company-facts__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
  grid-template-columns: none;
}

.lp-company-facts--layout-editorial .lp-company-facts__intro {
  max-width: none;
  width: 100%;
}

.lp-company-facts--layout-editorial .lp-company-facts__title {
  max-width: none;
}

.lp-company-facts--layout-editorial .lp-company-facts__text {
  max-width: none;
}

.lp-company-facts--layout-editorial .lp-company-facts__theses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.2vw, 32px) clamp(24px, 2.8vw, 40px);
  margin: 0;
  padding: clamp(28px, 3vw, 40px) 0 0;
  border-top: 1px solid rgba(49, 60, 35, 0.12);
  list-style: none;
}

.lp-company-facts--layout-editorial .lp-company-facts__testimonial {
  display: grid !important;
  flex-direction: unset;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: 30px;
  overflow: hidden;
}

.lp-company-facts--layout-editorial .lp-company-facts__portrait {
  border-radius: 18px;
  overflow: hidden;
  align-self: stretch;
}

.lp-company-facts--layout-editorial .lp-company-facts__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.lp-company-facts--layout-editorial .lp-company-facts__testimonial-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(4px, 0.6vw, 10px) 0;
}

.lp-company-facts--layout-editorial .lp-company-facts__testimonial-copy .lp-company-facts__testimonial-quote-mark {
  top: 0;
  width: clamp(44px, 4vw, 64px);
  opacity: 0.18;
}

.lp-company-facts--layout-editorial .lp-company-facts__testimonial-copy .lp-company-facts__testimonial-quote-mark--first {
  left: 0;
  right: auto;
}

.lp-company-facts--layout-editorial .lp-company-facts__testimonial-copy .lp-company-facts__testimonial-quote-mark--second {
  left: clamp(32px, 3vw, 48px);
  right: auto;
}

.lp-company-facts--layout-editorial .lp-company-facts__quote {
  max-width: none;
  margin: clamp(36px, 3.2vw, 52px) 0 0;
}

.lp-company-facts--layout-editorial .lp-company-facts__testimonial-footer {
  margin-top: clamp(20px, 2vw, 28px);
  padding-top: clamp(18px, 1.8vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lp-company-facts--layout-editorial .lp-company-facts__author-role {
  max-width: 420px;
}

@media (min-width: 1025px) {
  .lp-company-facts--layout-editorial .lp-company-facts__theses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lp-company-facts--layout-editorial .lp-company-facts__testimonial {
    grid-template-columns: minmax(160px, 34%) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .lp-company-facts--layout-editorial .lp-company-facts__theses {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lp-company-facts--layout-editorial .lp-company-facts__testimonial {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }

  .lp-company-facts--layout-editorial .lp-company-facts__portrait img {
    aspect-ratio: 16 / 10;
    max-height: 280px;
  }

  .lp-company-facts--layout-editorial .lp-company-facts__quote {
    margin-top: 28px;
    font-size: 15px;
  }
}

/* color-version-4 */
body[data-theme="color-version-4"] .lp-company-facts--layout-editorial .lp-company-facts__theses {
  border-top-color: color-mix(in srgb, var(--color-text-main, #2f2a1f) 12%, transparent);
}

body[data-theme="color-version-4"] .lp-company-facts--layout-editorial .lp-company-facts__testimonial {
  background: var(--color-icon-bg) !important;
}

body[data-theme="color-version-4"] .lp-company-facts--layout-editorial .lp-company-facts__portrait {
  background: color-mix(in srgb, var(--color-icon-bg) 72%, #000);
}

body[data-theme="color-version-4"] .lp-company-facts--layout-editorial .lp-company-facts__testimonial-footer {
  border-top-color: color-mix(in srgb, var(--color-text-inverse) 22%, transparent);
}

body[data-theme="color-version-4"] .lp-company-facts--layout-editorial .lp-company-facts__testimonial-copy .lp-company-facts__testimonial-quote-mark {
  filter: none;
  opacity: 0.16;
}
