/* Page 5364 (кейс «Отчёт по просроченной дебиторской задолженности в 1С»):
   стили для новой подачи на .rl-лендинг-фреймворке. Всё scoped под .pdz,
   токены .rl. Подключается автоматически через Assets::elementorCssLink(5364). */

/* ═══ Бейджи в hero — фишки в одну строку ═══ */
.pdz-featline { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.pdz-featline span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 6px;
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  font-size: 13px; color: var(--muted-hi, rgba(255,255,255,.75));
}
.pdz-featline span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #E3C083);
}

/* ═══ Галерея скриншота отчёта ═══
   Одна фигура во всю ширину, в карточке с подписью — как kadis-shot,
   но одиночная. */
.pdz-shots { margin-top: 36px; }
.pdz-shot {
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: var(--radius, 6px);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.pdz-shot:hover {
  border-color: color-mix(in srgb, var(--accent, #E3C083) 45%, transparent);
  transform: translateY(-2px);
}
.pdz-shot__img {
  display: block; width: 100%; height: auto;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}
.pdz-shot__cap {
  padding: 14px 18px;
  font-size: 14px; color: var(--sec, rgba(255,255,255,.7)); line-height: 1.45;
}
.pdz-shot__cap b { color: var(--text, #fff); font-weight: 700; display: block; margin-bottom: 2px; }

/* ═══ Конфигуратор стоимости отчёта ═══
   Слева — выбор функционала (карточки-чекбоксы с ценой), справа — итоговая
   цена с разбивкой и CTA. Считается inline-JS в конце страницы, без POST на
   сервер — для набора независимых модулей серверная машина калькуляторов
   избыточна (как и у ztl-calc из inCam). Все цвета — токены .rl. */
.pdz-calc {
  margin-top: 40px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px;
  padding: 32px;
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: var(--radius, 6px);
}
.pdz-calc__controls { display: flex; flex-direction: column; gap: 18px; }
.pdz-calc__group { display: flex; flex-direction: column; gap: 10px; }
.pdz-calc__label {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted-hi, rgba(255,255,255,.75));
}
.pdz-calc__hint { font-size: 13px; color: var(--muted, #fff); line-height: 1.45; }

/* Карточки-чекбоксы функционала: кликаешь — добавляешь в расчёт.
   Активная карточка подсвечивается акцентным градиентом (как ztl-seg.is-active). */
.pdz-modules { display: flex; flex-direction: column; gap: 8px; }
.pdz-mod {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.pdz-mod:hover { border-color: color-mix(in srgb, var(--accent, #E3C083) 45%, transparent); }
.pdz-mod:focus-visible {
  outline: 2px solid var(--accent, #E3C083); outline-offset: 2px;
}
.pdz-mod__check {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px;
  border: 1px solid var(--border-hi, rgba(255,255,255,.25));
  background: rgba(255,255,255,.02);
  display: inline-flex; align-items: center; justify-content: center;
  color: #14171a; font-size: 13px; font-weight: 800; line-height: 1;
  transition: background .15s, border-color .15s;
}
.pdz-mod__name { flex: 1 1 auto; font-size: 14px; font-weight: 600; color: var(--text, #fff); line-height: 1.3; }
.pdz-mod__price {
  flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--muted, #fff);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pdz-mod__price--free { color: var(--green, #4EEEA0); }

.pdz-mod.is-active {
  background: color-mix(in srgb, var(--accent, #E3C083) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent, #E3C083) 55%, transparent);
}
.pdz-mod.is-active .pdz-mod__check {
  background: var(--accent-gradient, linear-gradient(135deg,#EFD6A6,#C9A362));
  border-color: transparent;
}
.pdz-mod.is-active .pdz-mod__price { color: var(--accent, #E3C083); }
.pdz-mod.is-active .pdz-mod__price--free { color: var(--green, #4EEEA0); }

/* Правая плашка — итог */
.pdz-total {
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px; border-radius: var(--radius, 6px);
  background: rgba(255,255,255,.02);
  border: 1px solid color-mix(in srgb, var(--accent, #E3C083) 30%, transparent);
  position: relative; overflow: hidden;
}
.pdz-total::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--accent-gradient, linear-gradient(90deg,#EFD6A6,#C9A362));
}
.pdz-total__cap {
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted-hi, rgba(255,255,255,.75));
}
.pdz-total__num {
  font-size: clamp(36px, 5.5vw, 52px); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: var(--text, #fff); margin: 10px 0 4px;
}
.pdz-total__num em { font-style: normal; color: var(--accent, #E3C083); }
.pdz-total__sub { font-size: 14px; color: var(--muted, #fff); font-weight: 600; }
.pdz-total__break {
  list-style: none; margin: 18px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
  display: flex; flex-direction: column; gap: 7px;
}
.pdz-total__break li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--sec, rgba(255,255,255,.7));
}
.pdz-total__break li b { color: var(--text, #fff); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdz-total__break li.is-free b { color: var(--green, #4EEEA0); }
.pdz-total__break li.is-empty { color: var(--muted, #fff); justify-content: center; }
.pdz-total__cta { margin-top: 22px; }

.pdz-note {
  margin-top: 22px; font-size: 13px; color: var(--muted, #fff); line-height: 1.5;
}

@media (max-width: 880px) {
  .pdz-calc { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
