/* ============================================================
   ИИ-бот для СЦ — страница собрана в системе главной.
   Подключать после sv2026.css и scenes.css.
   ============================================================ */

.sv-sect { overflow: clip; }
.sv-sect > .sv-wrap { position: relative; z-index: 1; }
.sv-head { max-width: 760px; margin-bottom: 26px; }

/* уникальный фоновый приём для каждой секции */
.bot-day::before, .bot-grid-sec::before, .bot-app::before, .bot-res::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: 0; top: 0; width: 340px; height: 320px;
  color: rgba(21,24,27,.22);
  background-image: radial-gradient(currentColor 1.15px, transparent 1.3px);
  background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(125% 125% at 100% 0, #000 26%, transparent 72%);
          mask-image: radial-gradient(125% 125% at 100% 0, #000 26%, transparent 72%);
}
.bot-crew::before, .bot-kb::before, .bot-feats::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 0; bottom: 0; width: 320px; height: 280px;
  color: rgba(21,24,27,.18);
  background-image: radial-gradient(currentColor 1.15px, transparent 1.3px);
  background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(125% 125% at 0 100%, #000 24%, transparent 70%);
          mask-image: radial-gradient(125% 125% at 0 100%, #000 24%, transparent 70%);
}
.bot-srv::before, .bot-an::before, .bot-need::before, .bot-faq::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 0; right: 0; top: 0; height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 13px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 58%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0 58%, transparent 100%);
}
.bot-scenes::after, .bot-an::after, .bot-need::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 340px; height: 430px; background-repeat: no-repeat; background-size: contain;
}
.bot-scenes::after { background-image: url("../images/trace-b.svg"); right: 8px; top: 40px; }
.bot-an::after { background-image: url("../images/trace-a.svg"); left: 0; bottom: 20px; }
.bot-need::after { background-image: url("../images/technical-field.svg"); right: -40px; bottom: -30px; width: 360px; height: 360px; }

/* белая инженерная панель для снимков и сцен */
.shot, .screenshot-card, .scene-frame, .smart-card, .fn-group, .setup-step,
.metrika-shot, .app-phone, .crew-got, .case-card {
  position: relative; background: var(--panel); box-shadow: var(--shadow); border: 0; border-radius: 0;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.shot img, .screenshot-card img, .smart-card img, .metrika-shot img, .app-phone img, .crew-got img {
  display: block; width: 100%; height: auto; border-radius: 0;
}
.shot-cap, .scene-note p, .app-note, .crew-cap, .night-cap {
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.only-d { display: none; }
.only-m { display: block; }
@media (min-width: 760px) { .only-d { display: block; } .only-m { display: none; } }

/* --- SC-01 Первый экран ------------------------------------ */
.bot-hero__grid { display: grid; gap: 28px; }
.bot-channels { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.bot-channels span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.bot-channels img { width: 30px; height: 30px; }
.bot-reel { margin: 0; }
.bot-reel__frame {
  position: relative; background: var(--dark); box-shadow: var(--shadow-lift);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.bot-reel__frame video { display: block; width: 100%; height: auto; filter: saturate(.76) contrast(1.03); }
.bot-reel__btn {
  position: absolute; right: 12px; bottom: 12px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  background: rgba(18,22,26,.82); border: 1px solid rgba(255,255,255,.22);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.bot-reel--d { display: none; }
.bot-reel figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* --- SC-02 Хронология смены -------------------------------- */
.timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 26px; }
.tl-axis { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); overflow: hidden; }
.tl-axis-fill { display: block; width: 100%; height: 100%; background: var(--orange);
  transform: scaleY(0); transform-origin: top; transition: transform .2s linear; }
.tl-item { position: relative; min-width: 0; }
.tl-mark { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tl-dot { position: absolute; left: -26px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--line); box-shadow: 0 0 0 4px var(--paper-2); transition: background-color .25s ease; }
.tl-item.on .tl-dot, .tl-item.visible .tl-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(206,68,9,.16); }
.tl-time { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.tl-where { font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-ink); }
.tl-body h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.tl-body p { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 62ch; }
.tl-body .shot, .tl-body .screenshot-card { margin-top: 16px; max-width: 660px; }
.tl-body .chan-bars, .tl-body .mini-counters, .tl-body .mini-fin { max-width: 520px; }

/* данные внутри ленты */
.chan-bars, .mini-counters, .mini-fin {
  margin-top: 16px; padding: 18px; background: var(--panel); box-shadow: var(--shadow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.cb-row { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 12px; padding: 7px 0; }
.cb-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cb-track { height: 8px; background: var(--paper-2); border-radius: 0; }
.chan-bars .cb-track i, .cb-track > *, .cb-fill { display: block; height: 100%; background: var(--orange) !important; border-radius: 0 !important; }
.cb-row > :last-child { text-align: right; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mini-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mc b, .mc strong { display: block; font-size: 26px; font-weight: 800; color: var(--orange); letter-spacing: -.02em; }
.mc span { font-size: 12.5px; color: var(--muted); }
.mf-head { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.mf-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--body); }

/* --- SC-03 Ночная смена ------------------------------------ */
.bot-night { background: var(--paper-2); padding-block: 0; }
.bot-night__panel {
  position: relative; overflow: clip; background: var(--dark);
  padding: clamp(26px, 6vw, 56px) clamp(20px, 4vw, 44px);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.bot-night__panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(232,87,8,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,87,8,.09) 1px, transparent 1px);
  background-size: 92px 92px, 92px 92px;
}
.bot-night__grid { position: relative; z-index: 1; display: grid; gap: 28px; }
.bot-night .sv-h2 { color: #fff; }
.bot-night .sv-lede, .bot-night p { color: var(--dark-muted); }
.bot-night__dialog .night-card, .bot-night__dialog .night-sky, .bot-night__dialog .stage {
  background: var(--dark-2) !important; border-radius: 0 !important; border: 1px solid var(--dark-line); padding: 20px;
}
.bot-night .nmsg, .bot-night .n-client {
  background: rgba(255,255,255,.07) !important; border-radius: 0 !important;
  color: var(--dark-text) !important; border: 0 !important;
}
.bot-night .n-bot {
  background: rgba(232,87,8,.14) !important; border: 1px solid rgba(232,87,8,.35) !important;
  border-radius: 0 !important; color: #fff !important;
}
.bot-night .nwho, .bot-night .night-cap { color: var(--dark-muted) !important; }
.bot-night .night-pill {
  background: rgba(232,87,8,.16); border: 1px solid rgba(232,87,8,.4); color: #fff;
  border-radius: 0; padding: 8px 12px; font-size: 12.5px; font-weight: 700;
}

/* --- SC-04 / SC-11 Карточки с перепиской -------------------- */
.smart-grid { display: grid; gap: 16px; }
.smart-card { margin: 0; padding: 0 0 22px; overflow: hidden; }
.smart-card img { border-bottom: 1px solid var(--line-soft); }
.smart-card h3 { margin: 18px 22px 8px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.smart-card p { margin: 0 22px; font-size: 14.5px; line-height: 1.55; color: var(--body); }

/* --- SC-05 Поручения мастеров ------------------------------ */
.crew-grid { display: grid; gap: 24px; }
.crew-text h3 { font-size: 19px; margin: 0 0 10px; }
.crew-text p, .crew-text li { font-size: 15px; line-height: 1.6; color: var(--body); }
.crew-text ul { display: grid; gap: 10px; margin: 12px 0 0; }
.crew-text li { position: relative; padding-left: 18px; }
.crew-text li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 1px; background: var(--orange); }
.crew-shots { display: grid; gap: 16px; }
.crew-got { padding: 0; }

/* --- SC-06 Сервисный режим --------------------------------- */
.bot-srv .scene-frame { max-width: 920px; margin-inline: auto; }

/* --- SC-07 Сцены ------------------------------------------- */
.scenes { display: grid; gap: 30px; }
.scene-row { display: grid; gap: 20px; align-items: center; }
.scene-note h3 { font-size: 19px; margin: 0 0 8px; }
.scene-note p { font-size: 15px; line-height: 1.6; color: var(--body); }
.scene-replay {
  margin-top: 14px; padding: 10px 18px; min-height: 44px;
  background: transparent; color: var(--orange-ink); border: 1px solid var(--orange);
  border-radius: 0; font-size: 14px; font-weight: 700; cursor: pointer;
}
.scene-replay:hover { background: rgba(206,68,9,.07); }

/* --- SC-08 Аналитика --------------------------------------- */
.metrika-grid { display: grid; gap: 24px; align-items: center; }
.metrika-text p { font-size: 15.5px; line-height: 1.6; color: var(--body); margin-bottom: 12px; }

/* --- SC-09 Приложение -------------------------------------- */
.app-grid { display: grid; gap: 24px; align-items: center; }
.app-phone { padding: 0; max-width: 320px; }
.phone-frame { padding: 0; }
.app-list { display: grid; gap: 12px; margin: 18px 0 0; }
.app-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--body); }
.app-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 1px; background: var(--orange); }
.app-list b, .app-list strong { color: var(--ink); }
.app-note { margin-top: 16px; }

/* --- SC-10 База знаний ------------------------------------- */
.knows-grid { display: grid; gap: 24px; align-items: start; }
.knows-text p { font-size: 15.5px; line-height: 1.6; color: var(--body); margin-bottom: 12px; }
.knows-shots { display: grid; gap: 16px; }

/* --- SC-12 Что умеет бот ----------------------------------- */
.fn-grid { display: grid; gap: 16px; }
.fn-group { padding: 26px 24px 28px; }
.fn-group h3 { margin: 0 0 14px; font-size: 18px; color: var(--ink); }
.fn-group .sv-ic { margin-bottom: 14px; }
.fn-group ul { display: grid; gap: 10px; }
.fn-group li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.fn-group li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 1px; background: var(--orange); }

/* --- SC-13 Результат --------------------------------------- */
.case-card { padding: 28px 24px 30px; }
.case-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.stat-item { position: relative; }
.stat-number { display: block; font-size: clamp(28px, 5vw, 40px); font-weight: 800; color: var(--orange);
  letter-spacing: -.02em; line-height: 1; }
.stat-label { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--body); }
.stat-underline { display: none; }

/* --- SC-14 Что нужно от вас -------------------------------- */
.setup-steps { display: grid; gap: 16px; }
.setup-step { padding: 26px 24px 28px; }
.setup-step h3, .setup-step > b, .setup-step > strong {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-ink); margin-bottom: 10px;
}
.setup-step p { font-size: 15px; line-height: 1.6; color: var(--body); }

/* --- Планшет ----------------------------------------------- */
@media (min-width: 700px) {
  .smart-grid, .fn-grid, .setup-steps { grid-template-columns: 1fr 1fr; }
  .case-stats { grid-template-columns: repeat(4, 1fr); }
  .crew-shots { grid-template-columns: 1fr 1fr; }
}

/* --- Десктоп ----------------------------------------------- */
@media (min-width: 1000px) {
  .bot-hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 44px; align-items: center; }
  .bot-reel--d { display: block; }
  .bot-reel--m { display: none; }
  .bot-reel { max-width: 560px; margin-left: auto; }

  .timeline { padding-left: 0; gap: 44px; }
  .tl-axis { left: 148px; }
  .tl-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .tl-mark { display: block; grid-column: 1; margin-bottom: 0; }
  .tl-mark .tl-dot { left: 143px; top: 7px; }
  .tl-where { display: block; margin-top: 3px; }
  .tl-time, .tl-where { text-align: right; }
  .tl-body { grid-column: 2; }
  .tl-body h3 { margin-top: 0; }

  .bot-night__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
  .smart-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .crew-grid, .metrika-grid, .knows-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
  .app-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; }
  .scene-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; }
  .fn-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .setup-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .case-card { padding: 36px 34px 38px; }
  .sv-head { margin-bottom: 34px; }
}


/* ============================================================
   Подложки под текст, увеличенное видео, ночной блок
   ============================================================ */

/* полупрозрачная подложка под текстовые колонки */
.bot-copy {
  position: relative;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px rgba(21,24,27,.09), 0 18px 40px -34px rgba(21,24,27,.4);
  padding: 24px 24px 26px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}

/* текст ленты смены — на такой же подложке */
.tl-body {
  position: relative;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(21,24,27,.08), 0 18px 40px -34px rgba(21,24,27,.36);
  padding: 22px 24px 24px;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
  overflow: hidden;
}
.tl-body > *:not(.sv-card__wm) { position: relative; z-index: 1; }
.tl-body .sv-card__wm { right: -14px; bottom: -16px; width: 150px; height: 150px; opacity: .09; }
.tl-body .shot, .tl-body .screenshot-card, .tl-body .chan-bars,
.tl-body .mini-counters, .tl-body .mini-fin { background: var(--panel); }

/* фон секции ленты смены */
.bot-day {
  background:
    linear-gradient(180deg, var(--paper-2) 0 70px, rgba(234,231,224,.55) 320px, rgba(234,231,224,.9) 100%),
    url("../img/day-field.webp");
  background-size: auto, 1600px auto;
  background-position: center, right -60px top 40px;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--paper-2);
}
@media (max-width: 999px) {
  .bot-day { background-size: auto, 900px auto; background-position: center, right -160px top 30px; }
}

/* --- Ночной блок в логике «Запуска с нуля» ------------------ */
.bot-night__cards { display: grid; gap: 12px; margin-top: 24px; }
.bot-night .sv-dcard {
  padding: 1px; background: rgba(232,87,8,.5);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.bot-night .sv-dcard__in {
  height: 100%; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 20px; background: var(--dark-2);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.bot-night .sv-dcard__kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-hot);
}
.bot-night .sv-dcard h3 { color: #fff; font-size: 18px; }
.bot-night .sv-dcard p { color: var(--dark-muted); font-size: 14.5px; }
.bot-night .sv-dcard .sv-ic { color: #fff; --ic-hot: var(--orange-hot); }
.bot-night__dialog { position: relative; }
.bot-night .sv-callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bot-night .sv-callout {
  padding: 9px 11px; background: rgba(18,22,26,.8);
  border: 1px solid rgba(232,87,8,.5);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dark-text); line-height: 1.35;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

@media (min-width: 700px) {
  .bot-night__cards { grid-template-columns: 1fr 1fr; }
  .bot-night .sv-callouts { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .bot-reel { max-width: 660px; }
  .bot-hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .bot-copy { padding: 30px 32px 32px; }
  .tl-body { padding: 26px 30px 28px; }
  .bot-night .sv-callouts { position: static; margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .bot-night .sv-callout, .bot-night .sv-callout--1, .bot-night .sv-callout--2,
  .bot-night .sv-callout--3, .bot-night .sv-callout--4 {
    position: static !important; width: auto !important; max-width: none !important;
    left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
  }
}


/* иллюстрации в карточках и подложках */
.fn-group, .bot-copy, .tl-body { overflow: hidden; }
.fn-group .sv-card__art, .bot-copy .sv-card__art {
  position: absolute; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: auto; height: 58%; max-width: 62%;
  object-fit: contain; object-position: right bottom; opacity: .5;
  -webkit-mask-image: linear-gradient(300deg, #000 0 46%, transparent 100%);
          mask-image: linear-gradient(300deg, #000 0 46%, transparent 100%);
}
.tl-body .tl-art {
  position: absolute; right: -10px; bottom: -12px; z-index: 0; pointer-events: none;
  width: auto; height: 62%; max-width: 40%;
  object-fit: contain; object-position: right bottom; opacity: .38;
  -webkit-mask-image: linear-gradient(300deg, #000 0 40%, transparent 100%);
          mask-image: linear-gradient(300deg, #000 0 40%, transparent 100%);
}
.fn-group > *:not(.sv-card__art), .bot-copy > *:not(.sv-card__art) { position: relative; z-index: 1; }
@media (max-width: 699px) {
  .fn-group .sv-card__art, .bot-copy .sv-card__art, .tl-body .tl-art { opacity: .3; height: 46%; }
}


/* чертёж ночного сервиса — фон тёмной панели */
.bot-night__panel {
  background-image:
    linear-gradient(90deg, var(--dark) 0 34%, rgba(18,22,26,.86) 52%, rgba(18,22,26,.72) 100%),
    url("../images/../img/night-scene.webp");
  background-size: auto, 1200px auto;
  background-position: center, right -80px bottom -40px;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--dark);
}
@media (max-width: 999px) {
  .bot-night__panel {
    background-image:
      linear-gradient(180deg, var(--dark) 0 30%, rgba(18,22,26,.86) 55%, rgba(18,22,26,.7) 100%),
      url("../img/night-scene-portrait.webp");
    background-size: auto, 520px auto;
    background-position: center, right -90px bottom -30px;
  }
}


/* --- короче на мобильном ----------------------------------- */
@media (max-width: 999px) {
  .sv-sect { padding-block: clamp(40px, 7vw, 72px); }
  .sv-head { margin-bottom: 20px; }
  .tl-body { padding: 18px 18px 20px; }
  .timeline { gap: 20px; }
  .smart-grid, .fn-grid, .setup-steps, .scenes { gap: 12px; }
}

/* группы «Что умеет бот и CRM» */
details.fn-group { padding: 0; }
details.fn-group > summary {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 22px 24px; list-style: none;
}
details.fn-group > summary::-webkit-details-marker { display: none; }
details.fn-group > summary h3 { margin: 0; flex: 1 1 auto; }
details.fn-group > summary .sv-ic { margin: 0; width: 40px; height: 40px; }
details.fn-group > summary::after {
  content: ""; flex: none; width: 14px; height: 14px; position: relative;
  background:
    linear-gradient(var(--orange) 0 0) center/100% 2px no-repeat,
    linear-gradient(var(--orange) 0 0) center/2px 100% no-repeat;
  transition: transform .2s ease;
}
details.fn-group[open] > summary::after { background: linear-gradient(var(--orange) 0 0) center/100% 2px no-repeat; }
details.fn-group ul { padding: 0 24px 24px; }
@media (min-width: 1000px) {
  details.fn-group > summary { padding: 26px 24px 12px; cursor: default; }
  details.fn-group > summary::after { display: none; }
  details.fn-group ul { padding: 0 24px 28px; }
}


/* на мобильном показываем две карточки, остальные — по кнопке */
@media (max-width: 699px) {
  .smart-grid:not(.is-open) > figure:nth-child(n+3) { display: none; }
  .sv-more {
    display: block; width: 100%; min-height: 48px; margin-top: 12px;
    background: transparent; border: 1px solid var(--orange); color: var(--orange-ink);
    font-size: 15px; font-weight: 700; cursor: pointer;
  }
}
@media (min-width: 700px) { .sv-more { display: none; } }


/* --- тёмные клинья на срезанных углах ---------------------- */
/* вложенные блоки не должны рисовать свою тень и фон за срезом */
.shot > *, .screenshot-card > *, .scene-frame > *, .smart-card > *,
.metrika-shot > *, .app-phone > *, .crew-got > *, .knows-shots .shot > * {
  box-shadow: none !important; border-radius: 0 !important;
}
.shot, .screenshot-card, .scene-frame, .smart-card,
.metrika-shot, .app-phone, .crew-got { overflow: hidden; }

/* --- SC-05 поручения мастеров: снимки крупнее --------------- */
@media (min-width: 1000px) {
  .crew-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; }
  .crew-shots { grid-template-columns: 1fr; gap: 18px; }
  .crew-shots .shot img, .crew-got img { max-height: none; object-fit: contain; }
}

/* --- SC-10 база знаний: текст слева тянется, снимки крупнее -- */
.bot-kb .knows-grid { align-items: start; }
.bot-kb .knows-text { display: flex; flex-direction: column; }
.bot-kb .knows-text .sv-btn, .bot-kb .knows-text > a { margin-top: auto; align-self: flex-start; }
.bot-kb .knows-shots { gap: 18px; }
.bot-kb .kb-box, .bot-kb .stage { min-height: 0 !important; }
.bot-kb .knows-text { padding-bottom: 200px; position: relative; }
.bot-kb .knows-text .sv-card__art { height: 44%; max-width: 74%; opacity: .45; }
@media (min-width: 1000px) {
  .bot-kb .knows-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; }
}


/* тёмный блок на внутренних страницах */
.sv-launch { margin-block: clamp(52px, 9vw, 104px); }


/* три карточки в тёмном блоке */
@media (min-width: 700px) { .sv-launch__cards--3 { grid-template-columns: repeat(3, 1fr); } }
.sv-launch__cards--3 .sv-dcard__in { padding: 18px 16px; }
.sv-launch__cards--3 .sv-dcard__kicker { color: var(--orange-hot); }
.sv-launch__cards--3 .sv-dcard__in p { font-size: 13.5px; }
.sv-launch__copy > .sv-btn { margin-top: 22px; }




/* --- ролик в первом экране: чертёжная оправа вместо чёрной рамки --- */
.bot-reel { position: relative; }
.bot-reel__frame {
  position: relative; background: none; padding: 0; box-shadow: none; clip-path: none;
}
.bot-reel__frame video {
  display: block; width: 100%; height: auto;
  filter: saturate(.78) contrast(1.03);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
  box-shadow: 0 30px 60px -34px rgba(21,24,27,.55);
}
/* тонкая размерная рамка со смещением */
.bot-reel::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: -16px; top: -16px; right: 26px; bottom: 44px;
  border: 1px solid var(--line);
}
/* оранжевая угловая скоба */
.bot-reel::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: -16px; top: -16px; width: 30px; height: 30px;
  border-left: 2px solid var(--orange); border-top: 2px solid var(--orange);
}
.bot-reel__frame { z-index: 1; }
.bot-reel__btn {
  right: 14px; bottom: 14px;
  background: rgba(243,241,235,.95) !important; color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.bot-reel figcaption { position: relative; z-index: 1; padding-left: 2px; }
@media (max-width: 999px) {
  .bot-reel::before { left: -10px; top: -10px; right: 16px; bottom: 40px; }
  .bot-reel::after { left: -10px; top: -10px; width: 22px; height: 22px; }
}


/* подзаголовок внутри секции */
.sv-sub-head {
  margin: 26px 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange-ink);
}
.sv-sub-head + .smart-grid { margin-bottom: 8px; }

/* снимок «что пришло клиенту» — обрезаем сильнее */
.crew-got--tall img { max-height: 420px; object-fit: cover; object-position: top; }

/* сцена сервисного режима на десктопе компактнее */
@media (min-width: 1000px) {
  /* макет прайса не сжимаем шириной — он ломается; уменьшаем масштабом */
  .bot-srv .scene-frame { zoom: .72; margin-inline: auto; }
  .bot-srv .night-cap { max-width: 760px; margin-inline: auto; text-align: center; }
}


/* сцена прайса: чипы и заголовки в палитре системы */
.bot-srv .chip, .bot-srv .srv-badge, .bot-srv .st-title,
.bot-srv .sb-work, .bot-srv .sb-sup {
  color: var(--ink) !important;
}
.bot-srv .chip { background: var(--orange) !important; color: #fff !important; }
.bot-srv .sr-copy, .bot-srv .sr-soft, .bot-srv .sr-oled, .bot-srv .sr-orig {
  background: rgba(21,24,27,.06) !important; color: var(--ink) !important; border-radius: 0 !important;
}
.bot-srv .srv-block { border-color: var(--line) !important; }




/* тёмный рендер: тянем на всю высоту колонки, как на главной, со срезанным углом */
.sv-launch__grid { align-items: stretch; }
.sv-launch__visual { position: relative; display: flex; align-self: stretch; }
.sv-launch__visual img {
  width: 100%; height: 100%; aspect-ratio: auto !important;
  object-fit: cover !important; object-position: center;
  background: var(--dark);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
@media (max-width: 999px) {
  .sv-launch__visual img { height: auto; aspect-ratio: 16 / 9 !important; }
}
@media (min-width: 1000px) {
  .sv-launch .sv-callouts { position: absolute; inset: 0; display: block; margin: 0; }
  .sv-launch .sv-callout { position: absolute; width: max-content; max-width: 190px; }
  .sv-launch .sv-callout--1 { left: -12px; top: 30%; }
  .sv-launch .sv-callout--2 { right: 2%; top: 8%; }
  .sv-launch .sv-callout--3 { right: -14px; top: 54%; }
  .sv-launch .sv-callout--4 { left: 22%; bottom: 5%; }
}
