/* ============================================================
   Фирменный слайд «Полезные люди» — общий компонент.
   Подключается и в конструкторе (editor.html), и в галерее
   стилей (styles.html). Размер слайда — 1080×1350, масштаб
   задаёт родитель через transform: scale().
   ============================================================ */

@font-face {
  font-family: "Grandis";
  src: url("brand/fonts/Grandis-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Grandis";
  src: url("brand/fonts/Grandis-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Grandis";
  src: url("brand/fonts/Grandis-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Grandis";
  src: url("brand/fonts/Grandis-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}

.slide {
  width: 1080px; height: 1350px; position: relative; overflow: hidden;
  background: var(--sbg, #ffffff); color: var(--sink, #123B22);
  font-family: var(--sfont-body, "Open Sans", sans-serif);
  isolation: isolate;
}
.slide .photo, .slide .s-grad { position: absolute; inset: 0; }
.slide .photo { width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.slide .s-grad { z-index: 3; }
.slide .s-scrim { position: absolute; inset: 0; z-index: 4;
                  background: linear-gradient(180deg, rgba(8,10,9,.18), rgba(8,10,9,.82)); }
.slide .deco { position: absolute; pointer-events: none; z-index: 5; }

/* ---------- Узор фона (подложка) ---------- */
.slide .s-pattern { position: absolute; inset: 0; z-index: 5; }
.slide[data-pattern="dots"] .s-pattern {
  background-image: radial-gradient(var(--saccent, #49B863) 1.6px, transparent 1.6px);
  background-size: 44px 44px; opacity: .10;
}
.slide[data-pattern="grid"] .s-pattern {
  background-image:
    linear-gradient(var(--saccent, #49B863) 1px, transparent 1px),
    linear-gradient(90deg, var(--saccent, #49B863) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .08;
}
.slide[data-pattern="paper"] .s-pattern {
  background-image: repeating-linear-gradient(0deg,
    rgba(18,59,34,.045) 0 1px, transparent 1px 10px);
}

/* ---------- Волна в углу (фирменный элемент ПЛ) ---------- */
.slide .s-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.slide .s-wave.flip { transform: scaleY(-1); }
.slide .s-wave.right { transform: scaleX(-1); }

/* ---------- Логотип на слайде ---------- */
.slide .s-logo { position: absolute; left: 84px; top: 72px; width: 296px; height: auto; z-index: 7; }

/* ---------- Текст ---------- */
.slide .pad { position: absolute; left: 90px; right: 90px; top: 150px; z-index: 6; }
.slide[data-logo="1"] .pad { top: 300px; }
.slide .s-eyebrow { font-size: var(--seyebrow, 24px); letter-spacing: .24em;
                    text-transform: uppercase; color: var(--saccent-ink, #2b7f40);
                    margin: 0 0 26px; font-weight: 600; }
.slide .s-title { font-family: var(--sfont-title, Georgia, serif); font-weight: 400;
                  font-variant-numeric: lining-nums tabular-nums; hyphens: auto; overflow-wrap: normal;
                  font-size: var(--stitle, 80px); line-height: 1.1; margin: 0;
                  letter-spacing: .002em; }
.slide[data-case="upper"] .s-title { text-transform: uppercase; letter-spacing: -.008em; }
.slide .s-body { font-size: var(--sbody, 30px); line-height: 1.52; margin: 0;
                 font-variant-numeric: lining-nums tabular-nums; hyphens: auto; overflow-wrap: normal;
                 max-width: 880px; color: var(--sink-soft, #5d6a60); }
.slide[data-bar="1"] .s-body { border-left: 6px solid var(--saccent, #49B863);
                               padding-left: 26px; }
.slide .s-muted { color: var(--sink-soft, #5d6a60); }

/* ---------- Подсветка слов ---------- */
.slide .hl { background: var(--shl, #49B863); color: var(--shl-ink, #ffffff);
             padding: .02em .14em; border-radius: .14em;
             box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.slide[data-hl="pill"] .hl { padding: .04em .28em .10em; border-radius: 999px; }
.slide[data-hl="marker"] .hl {
  background: linear-gradient(transparent 56%, var(--shl, #49B863) 56%);
  color: inherit; padding: 0 .06em; border-radius: 0;
}

/* ---------- Подчёркивание под заголовком ---------- */
.slide .s-rule { height: 9px; background: var(--saccent, #49B863); margin: 28px 0 30px; }
.slide .s-brush { display: block; width: 40%; height: 26px; margin: 14px 0 26px;
                  color: var(--saccent, #49B863); overflow: visible; }
.slide .s-rule-double { margin: 26px 0 30px; }
.slide .s-rule-double::before, .slide .s-rule-double::after {
  content: ""; display: block; background: var(--saccent, #49B863);
}
.slide .s-rule-double::before { height: 8px; }
.slide .s-rule-double::after {
  height: 3px; margin-top: 6px; width: 62%;
  background: color-mix(in srgb, var(--saccent, #49B863) 55%, transparent);
}

/* ---------- Композиции ---------- */
.slide .s-frame { position: absolute; inset: 54px; border: 2px solid var(--saccent, #48B056); }
.slide .s-rules { position: absolute; left: 90px; right: 90px; top: 70px;
                  border-top: 6px solid var(--sink, #111); height: 14px;
                  border-bottom: 4px solid var(--sink, #111); }
.slide .s-band { position: absolute; background: var(--saccent, #48B056); }
.slide .s-band.left { left: 0; top: 0; bottom: 0; }
.slide .s-band.right { right: 0; top: 0; bottom: 0; }
.slide .s-band.top { left: 0; right: 0; top: 0; }
.slide .s-band.bottom { left: 0; right: 0; bottom: 0; }
.slide .s-poly { position: absolute; right: 0; top: 0; width: 330px; height: 470px;
                 background: var(--saccent, #48B056);
                 clip-path: polygon(68% 0, 100% 0, 100% 89%, 0% 100%); }
.slide .s-ghost { position: absolute; font-family: var(--sfont-title, Georgia, serif);
                  line-height: .9; color: var(--saccent, #48B056);
                  opacity: .16; user-select: none; font-weight: 600; }
.slide .s-circle { position: absolute; width: 100px; height: 100px; border-radius: 50%;
                   background: var(--saccent, #48B056); right: 90px; bottom: 90px; }

/* ---------- Композиции: положение текстового блока ---------- */
.slide[data-layout="center"] .pad { left: 120px; right: 120px; top: 200px; text-align: center; }
.slide[data-layout="center"] .s-eyebrow { margin-bottom: 30px; }
.slide[data-layout="center"] .s-rule { margin: 30px auto 32px; }
.slide[data-layout="center"] .s-brush { margin-left: auto; margin-right: auto; }
.slide[data-layout="center"] .s-body { max-width: 680px; margin: 0 auto; }
.slide[data-layout="bottom"] .pad { top: auto; bottom: 110px; }
.slide[data-layout="bottom"] .s-ghost { right: 90px; top: 90px; }
.slide[data-layout="paper"] .pad { top: 170px; }
.slide[data-layout="paper"] .s-rule { margin: 30px 0 34px; }
.slide[data-layout="construct"] .pad { top: 190px; }
.slide[data-layout="construct"] .s-body { max-width: 700px; }
.slide[data-layout="band"] .pad { left: 110px; }
.slide[data-layout="corner"] .pad { top: 150px; }
.slide[data-layout="corner"] .s-ghost { right: 90px; bottom: 110px; }
.slide[data-layout="right"] .pad { text-align: right; }
.slide[data-layout="right"] .s-eyebrow { margin-bottom: 30px; }
.slide[data-layout="right"] .s-rule { margin: 28px 0 30px auto; }
.slide[data-layout="right"] .s-brush { margin-left: auto; }
.slide[data-layout="right"] .s-body { margin-left: auto; max-width: 800px; }

/* Логотип занимает верх — текст опускаем (кроме нижней композиции). */
.slide[data-logo="1"][data-layout="left"] .pad,
.slide[data-logo="1"][data-layout="paper"] .pad,
.slide[data-logo="1"][data-layout="right"] .pad,
.slide[data-logo="1"][data-layout="band"] .pad,
.slide[data-logo="1"][data-layout="corner"] .pad,
.slide[data-layout="center"][data-logo="1"] .pad,
.slide[data-layout="construct"][data-logo="1"] .pad { top: 300px; }
.slide[data-layout="bottom"][data-logo="1"] .s-logo { top: 72px; }


/* ---------- Пустой слайд без фото ----------
   Раньше такой слайд был белым листом с текстом в углу. Мягкое
   акцентное свечение и крупный номер дают глазу точку опоры,
   не конкурируя с заголовком. */
.slide .s-blank { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 85% at 100% 0%,
    color-mix(in srgb, var(--saccent, #49B863) 16%, transparent), transparent 62%); }
.slide .s-blank::after { content: attr(data-num); position: absolute;
  right: 70px; top: 52px; font-family: var(--sfont-title, Georgia, serif);
  font-weight: 600; font-size: 240px; line-height: 1; letter-spacing: -.04em;
  color: var(--saccent, #49B863); opacity: .10; }
