/* ══════════════════════════════════════════════════════════════════════════
   Лендинг «Руководители» — надстройка над site-2026.css. Светлая тема,
   как «Отделам продаж» и «Фармацевтика».

   Здесь только то, чего нет на главной: портрет с плашками в сцене,
   полоса цифр, разворот, видео, сравнение, карточка разбора, отчёты,
   экономика, кейсы, отзывы, вопросы и финальный призыв. Стекло, шапки
   секций, сетка карточек, логотипы и окно продукта (`.ui`) берутся
   с главной как есть.

   Все секции несут `.sec--light`, токены (`--ink-rgb`, `--mute`, `--faint`,
   `--blue`) уже светлые. Оранжевый `--act` — только там, где звучит речь
   или проваливается критерий: волна, точка «разговор идёт», слабая шкала.
   Синий — наведение, фокус и выделенная колонка Pichi.
   ══════════════════════════════════════════════════════════════════════════ */

/* Без этого над светлой сценой просвечивает тёмный лист body. */
body:has(.mg) {
  background: #f3f3f5;
}

.mg sup {
  font-size: 0.62em;
  line-height: 0;
  vertical-align: super;
}

.mg .btn--line {
  background: rgba(243, 243, 245, 0.66);
  border-color: rgba(16, 17, 20, 0.2);
  color: var(--ink);
}
.mg .btn--line:hover {
  background: rgba(243, 243, 245, 0.9);
  border-color: var(--blue);
}

/* Цвета шкал — светлой шкалы окна продукта: на светлом листе тёмные
   значения из :root выглядят кислотно. */
.mg {
  --ui-good: #2d7e53;
  --ui-warn: #9d6b1f;
  --ui-bad: #cf3d16;
}

/* ── 01 · сцена: стекло слева, руководитель справа ───────────────────── */

.mg-scene {
  background: var(--bg);
}
/* Расфокус под стеклом — тот же портрет, размытый и сдвинутый влево:
   тёмный жакет ложится пятном под стекло, а справа, под чётким
   портретом, остаётся светлый фон. */
.mg-scene .mg-scene__bg {
  object-position: 50% 40%;
  transform: scale(1.35) translateX(-26%);
  filter: grayscale(0.5) blur(44px) brightness(1.04);
  opacity: 0.55;
}
.mg-scene::after {
  background:
    linear-gradient(
      100deg,
      rgba(243, 243, 245, 0.9) 0%,
      rgba(243, 243, 245, 0.55) 42%,
      rgba(243, 243, 245, 0.35) 70%
    ),
    radial-gradient(84% 76% at 60% 44%, rgba(243, 243, 245, 0), rgba(243, 243, 245, 0.72) 94%);
}
.mg-scene .lb,
.mg-scene .pill {
  color: rgba(16, 17, 20, 0.7);
}
.mg-scene .pill {
  border-color: rgba(16, 17, 20, 0.16);
}
.mg-scene .live .lb {
  color: var(--ink);
}

.mg-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.mg-scene .glass {
  width: 100%;
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(16, 17, 20, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 80px -44px rgba(16, 17, 20, 0.36);
}
.mg-scene .h1 {
  font-size: clamp(32px, 3vw, 46px);
}
.mg-scene .h1 em {
  font-style: normal;
  color: var(--blue);
}
.mg-scene .glass__lead {
  max-width: 52ch;
  color: rgba(16, 17, 20, 0.74);
}
.mg-micro {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--faint);
  max-width: 56ch;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(16, 17, 20, 0.62);
}

/* Портрет снят на белом; в `leader-portrait.webp` белый фон уже переведён
   в прозрачность, поэтому фигура стоит прямо на листе. Маска гасит нижнюю
   кромку жакета. */
.mg-fig {
  position: relative;
  width: 100%;
  max-width: 720px;
  justify-self: end;
  padding-bottom: 12px;
}
.mg-fig__frame img {
  width: 100%;
  height: auto;
  filter: grayscale(0.15);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

/* Четыре плашки по краям кадра: только линии, центр лица свободен. */
.mg-chip,
.mg-tag,
.mg-live {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
}
.mg-chip {
  left: 0;
  top: 30%;
  padding: 4px 16px 4px 0;
  border-right: 1px solid rgba(16, 17, 20, 0.22);
}
.mg-chip__v {
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mg-chip__v small {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--mute);
}
.mg-chip__note {
  font-size: 12.5px;
  color: var(--mute);
}
.mg-tag {
  right: 0;
  top: 44%;
  padding: 4px 0 4px 14px;
  border-left: 1px solid rgba(16, 17, 20, 0.22);
}
.mg-tag b {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mg-call {
  position: absolute;
  z-index: 2;
  top: 4%;
  right: 0;
}
.mg-live {
  left: 0;
  bottom: 0;
  max-width: 34ch;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 17, 20, 0.22);
}
.mg-live p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.mg-live b {
  margin-left: 4px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ui-good);
  font-variant-numeric: tabular-nums;
}

/* ── 02 · полоса цифр и строка доверия ────────────────────────────────── */

.mg-proof {
  padding-block: clamp(40px, 5vw, 72px);
}
.mg-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--faint);
}
.mg-strip > div {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 22px 26px;
  border-left: 1px solid var(--faint-2);
}
.mg-strip > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.mg-strip .v {
  font-size: clamp(36px, 3.6vw, 56px);
}
.mg-strip .v--text {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.mg-logos {
  margin-top: clamp(26px, 3vw, 40px);
}
.mg-legal {
  max-width: 88ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mute);
}

/* ── общие элементы разделов ─────────────────────────────────────────── */

/* Строки сетки задаются под число детей карточки: лишние пустые строки
   прибавили бы по row-gap снизу. */
.mg-grid {
  grid-template-rows: auto auto 1fr;
}
.mg-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mg-grid--cta,
.mg-grid--eval {
  grid-template-rows: auto 1fr auto;
}
.mg-grid--plain {
  grid-template-rows: auto 1fr;
}
.mg-grid--cta .ln {
  justify-self: start;
  margin-top: 6px;
}
.mg-step {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.mg-eval {
  padding-top: 12px;
  border-top: 1px solid var(--faint-2);
}
.mg-eval .lb {
  display: inline;
  margin-right: 6px;
  color: var(--ink);
}

/* Мостик в конце раздела: вывод крупной строкой над чертой. */
.mg-bridge {
  margin-top: clamp(34px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--faint);
  max-width: 56ch;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}
.mg-note {
  margin-top: 24px;
  max-width: 72ch;
  font-size: 14px;
  color: var(--mute);
}

.mg-quote {
  margin: clamp(34px, 4vw, 56px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--faint);
  display: grid;
  gap: 16px;
}
.mg-quote blockquote {
  margin: 0;
  max-width: 50ch;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ── 06 · разворот ────────────────────────────────────────────────────── */

.mg-flip {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 1080px;
}
.mg-flip__s {
  max-width: 60ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--mute);
}
.mg-flip__s i {
  font-style: normal;
  color: var(--ink);
  border-bottom: 1px solid var(--faint);
}
.mg-flip__b {
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.mg-flip__b em {
  font-style: normal;
  color: var(--blue);
}

/* ── 07 · видео в окне продукта ───────────────────────────────────────── */

.mg-video {
  margin-top: clamp(34px, 4vw, 56px);
  display: block;
  /* Во всю ширину листа ролик выходит выше экрана. */
  max-width: 1040px;
  aspect-ratio: 16 / 9;
}
.mg-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── 09 · сравнение: четыре способа, Pichi выделен ────────────────────── */

.mg-compare {
  margin-top: clamp(34px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mg-compare article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--faint);
  border-radius: var(--r);
}
.mg-compare h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mg-compare p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mute);
}
.mg-compare__hi {
  background: #fff;
  border-color: rgba(79, 87, 189, 0.4) !important;
  box-shadow: 0 30px 70px -50px rgba(79, 87, 189, 0.5);
}
.mg-compare__hi .lb,
.mg-compare__hi h3 {
  color: var(--blue);
}
.mg-compare__hi p {
  color: var(--dim);
}

/* ── 12 · разбор по индикаторам ───────────────────────────────────────── */

.mg-split {
  margin-top: clamp(26px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.mg-split__lead {
  margin-top: 18px;
}
.mg-proofs {
  margin-top: 26px;
  border-top: 1px solid var(--faint);
}
.mg-proofs li {
  padding: 14px 0;
  border-bottom: 1px solid var(--faint-2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
}
.mg-proofs b {
  font-weight: 500;
  color: var(--ink);
}

.mg-score {
  display: block;
  padding: 18px 20px 20px;
}
.mg-score__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-line);
}
.mg-score__total {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mg-score__total small {
  font-size: 13px;
  color: var(--ui-mute);
}
.mg-score__rows {
  margin-top: 16px;
}
.mg-score .ui__metric + .ui__metric {
  margin-top: 16px;
}
.mg-score .ui__metric__r {
  font-size: 13px;
  font-weight: 500;
}
.mg-score .ui__bar {
  margin-top: 7px;
}
.mg-score .ui__bar i {
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.mg-score__note {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ui-mute);
}
.mg-score__hint {
  margin-top: 18px;
}

.mg-report {
  margin-top: clamp(34px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--faint);
}
.mg-report > div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 22px 24px;
  border-left: 1px solid var(--faint-2);
}
.mg-report > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.mg-report h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mg-report p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mute);
}

/* ── 13 · промежуточный призыв ────────────────────────────────────────── */

.mg-midcta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  align-items: end;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-glass);
  background: #fff;
  border: 1px solid var(--faint);
}
.mg-midcta .h2 {
  margin-top: 16px;
}
.mg-midcta .lead {
  margin-top: 16px;
}
.mg-midcta__acts {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.mg-midcta__acts .mail {
  margin-top: 6px;
}

/* ── 15 · экономика ───────────────────────────────────────────────────── */

.mg-roi {
  margin-top: clamp(34px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mg-roi > div {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--faint-2);
}
.mg-roi .lb {
  color: var(--ink);
}
.mg-roi p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
}

/* ── 16 · метрики ─────────────────────────────────────────────────────── */

.mg-kpis {
  margin-top: clamp(34px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--faint);
}
.mg-kpis > div {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px 22px 10px;
  border-left: 1px solid var(--faint-2);
}
.mg-kpis > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.mg-kpis .v {
  font-size: clamp(40px, 4.4vw, 64px);
  white-space: nowrap;
}

/* ── 17 · проекты ─────────────────────────────────────────────────────── */

.mg-cases {
  margin-top: clamp(34px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mg-case {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--faint);
  border-radius: var(--r);
}
.mg-case h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.mg-case .case__nums {
  margin-top: 18px;
  padding-top: 20px;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.mg-case .case__nums .v {
  font-size: clamp(30px, 2.8vw, 42px);
  color: var(--ink);
}
.mg-case .case__nums .lb {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--f);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ── 18 · отзывы ──────────────────────────────────────────────────────── */

.mg-quotes {
  margin-top: clamp(34px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mg-quotes figure {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--faint-2);
}
.mg-quotes blockquote {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.mg-quotes figcaption {
  margin-top: auto;
}

/* ── 19 · вопросы — тот же аккордеон, что в фарме ─────────────────────── */

.mg-faq {
  margin-top: clamp(34px, 4vw, 60px);
  border-top: 1px solid var(--faint);
}
.mg-faq__item {
  border-bottom: 1px solid var(--faint-2);
}
.mg-faq__item summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 20px;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.mg-faq__item summary::-webkit-details-marker {
  display: none;
}
.mg-faq__q {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color 0.16s ease;
}
.mg-faq__item summary:hover .mg-faq__q,
.mg-faq__item summary:focus-visible .mg-faq__q {
  color: var(--blue);
}
.mg-faq__item summary i {
  position: relative;
  width: 14px;
  height: 14px;
  align-self: center;
}
.mg-faq__item summary i::before,
.mg-faq__item summary i::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6.5px;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.mg-faq__item summary i::after {
  transform: rotate(90deg);
}
.mg-faq__item[open] summary i::after {
  transform: rotate(0deg);
}
.mg-faq__a {
  padding: 0 48px 26px 100px;
  max-width: calc(72ch + 100px);
  color: var(--dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ── 20 · финальный призыв ────────────────────────────────────────────── */

.mg-final {
  margin-top: clamp(26px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.mg-final .lead {
  margin-top: 20px;
}
.mg-offer {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--faint);
}
.mg-offer li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--faint-2);
}
.mg-offer p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--dim);
}
.mg-offer b {
  font-weight: 500;
  color: var(--ink);
}
.mg-contact {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--faint);
  border-radius: var(--r);
}
.mg-contact .lb + .btn {
  margin-top: 2px;
}
.mg-contact p {
  font-size: 13.5px;
  color: var(--mute);
}
/* Почта-кнопка: тот же вид, что `.mail` главной, но это button. */
.mg-copy {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--f);
  line-height: 1;
  cursor: pointer;
}
.mg-copy.is-copied {
  color: #2d7e53;
}

.mg-refs {
  margin: clamp(44px, 5vw, 72px) 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--faint-2);
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mute);
}

/* ── узкие экраны ─────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .mg-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .mg-fig {
    justify-self: center;
    margin-top: 12px;
  }
  .mg-grid--3,
  .mg-compare,
  .mg-strip,
  .mg-kpis,
  .mg-cases,
  .mg-quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mg-grid--3 .cell:nth-child(3),
  .mg-strip > div:nth-child(3),
  .mg-kpis > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .mg-split,
  .mg-final {
    grid-template-columns: minmax(0, 1fr);
  }
  .mg-midcta {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .mg-midcta__acts {
    justify-items: start;
  }
}
@media (max-width: 680px) {
  /* Кнопка с длинной подписью переносится, а не вылезает из стекла. */
  .mg-scene .btn {
    height: auto;
    min-height: 48px;
    padding-block: 12px;
    white-space: normal;
    text-align: center;
  }
  /* Плашки уходят из кадра в поток под ним: на узком кадре они ложатся
     на лицо. */
  .mg-fig {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 18px;
  }
  .mg-fig__frame {
    flex: 0 0 100%;
  }
  .mg-chip,
  .mg-tag,
  .mg-call,
  .mg-live {
    position: static;
  }
  .mg-live {
    flex: 0 0 100%;
  }
  /* В потоке боковые черты плашек ни к чему не привязаны. */
  .mg-chip,
  .mg-tag {
    padding: 0;
    border: 0;
  }
  /* Длинная пилюля переносится, а не уходит за край сцены. */
  .mg-scene .pill {
    height: auto;
    padding-block: 6px;
    white-space: normal;
    line-height: 1.5;
  }
  .mg-grid--3,
  .mg-compare,
  .mg-strip,
  .mg-kpis,
  .mg-cases,
  .mg-quotes,
  .mg-report,
  .mg-roi {
    grid-template-columns: minmax(0, 1fr);
  }
  .mg-strip > div,
  .mg-kpis > div,
  .mg-report > div {
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid var(--faint-2);
  }
  .mg-faq__item summary {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 16px;
  }
  .mg-faq__item summary .lb {
    display: none;
  }
  .mg-faq__a {
    padding: 0 0 22px;
  }
  .mg-offer li {
    grid-template-columns: 36px minmax(0, 1fr);
  }
}
