/* ============================================================
   Сервисология — сцены «Как это выглядит в работе».
   Интерфейс рисует сама страница: он остаётся резким на любом
   экране и весит килобайты вместо мегабайт видео.
   Размеры заданы в cqw, поэтому сцена целиком масштабируется
   вместе с карточкой — текст читается и на телефоне.
   ============================================================ */

.scenes { display: flex; flex-direction: column; gap: 72px; margin-top: 56px; }

.scene-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.scene-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
.scene-row.flip .scene-frame { order: 2; }
.scene-row.flip .scene-note { order: 1; }

.scene-note h3 { font-size: clamp(20px, 1.1vw + 15px, 27px); margin-bottom: 10px; }
.scene-note p { font-size: 17px; line-height: 1.6; color: var(--text-secondary); }

.scene-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(11, 11, 12, 0.09);
  padding: 10px;
}

.stage {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #F7F8FA;
  font-size: 1cqw;
}
.stage * { box-sizing: border-box; }

/* --- общие детали интерфейса --- */
.st-bar {
  position: absolute; inset: 0 0 auto 0; height: 8.4cqw;
  display: flex; align-items: center; gap: 1.6cqw;
  padding: 0 3cqw; background: #fff; border-bottom: 0.22cqw solid #E9EBEF;
}
.st-title { font-size: 3cqw; font-weight: 700; color: #0B0B0C; }
.st-dot { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #22C55E; }
.st-body { position: absolute; inset: 8.4cqw 0 0 0; padding: 2.4cqw 3cqw; }

.chip {
  display: inline-flex; align-items: center;
  font-size: 2.3cqw; font-weight: 700; line-height: 1;
  padding: 0.9cqw 1.5cqw; border-radius: 0.9cqw; white-space: nowrap;
}
.chip-avito { background: #DCFCE7; color: #15803D; }
.chip-max { background: #FFEDD5; color: #C2410C; }
.chip-tg { background: #DBEAFE; color: #1D4ED8; }
.chip-vk { background: #E0E7FF; color: #4338CA; }
.chip-web { background: #F1F5F9; color: #475569; }
.chip-bot { background: #E8F0FF; color: #2563EB; }
.chip-new { background: #FEE2E2; color: #B91C1C; }
.chip-op { background: #DCFCE7; color: #15803D; }

/* --- сцена 1: диалог --- */
.msg { max-width: 80%; border-radius: 2cqw; padding: 2.1cqw 2.5cqw; font-size: 2.75cqw; line-height: 1.45; }
.msg-who { display: block; font-size: 2.1cqw; font-weight: 700; margin-bottom: 0.8cqw; opacity: .85; }
.msg-in { background: #F1F3F7; color: #0B0B0C; margin-bottom: 2.2cqw; }
.msg-out { background: #E8F1FE; color: #0B0B0C; margin-left: auto; }
.msg-out .msg-who { color: #2563EB; }
.msg-line { display: flex; gap: 1cqw; margin-top: 1.2cqw; font-size: 2.5cqw; color: #414755; }
.msg-line b { color: #0B0B0C; }
.typing { display: inline-flex; gap: 0.7cqw; padding: 2cqw 2.4cqw; background: #E8F1FE; border-radius: 2cqw; }
.typing i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #7EA6E8; animation: tdot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-0.5cqw); } }

/* --- сцена 2: инбокс --- */
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1.6cqw; padding: 1.9cqw 2cqw; border-radius: 1.4cqw;
  background: #fff; border: 0.22cqw solid #EDEFF3; margin-bottom: 1.5cqw;
}
.row-name { font-size: 2.7cqw; font-weight: 700; color: #0B0B0C; }
.row-text { font-size: 2.35cqw; color: #6B7280; margin-top: 0.5cqw; }
.row-mid { min-width: 0; }
.row-mid > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.counter {
  position: absolute; right: 3cqw; top: 2.2cqw;
  font-size: 2.4cqw; font-weight: 700; color: #B91C1C;
  background: #FEE2E2; padding: 0.7cqw 1.4cqw; border-radius: 0.9cqw;
}

/* --- сцена 3: касса --- */
.till-head { font-size: 2.9cqw; font-weight: 700; margin-bottom: 1.8cqw; }
.till-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 2.1cqw 2.5cqw; border-radius: 1.4cqw; margin-bottom: 1.6cqw;
  background: #fff; border: 0.22cqw solid #EDEFF3; font-size: 2.6cqw;
}
.till-row b { font-weight: 700; }
.till-row.warn { background: #FFF7ED; border-color: #FDBA74; }
.till-row.done { background: #F0FDF4; border-color: #86EFAC; }
.till-btn {
  font-size: 2.3cqw; font-weight: 700; color: #fff; background: #C94B00;
  padding: 1cqw 1.8cqw; border-radius: 0.9cqw;
}
.till-row.done .till-btn { background: #15803D; }
.till-note { font-size: 2.35cqw; color: #6B7280; margin-top: 1.4cqw; }
.scan {
  position: absolute; left: 0; right: 0; height: 0.5cqw;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, .75), transparent);
  opacity: 0;
}

/* --- курсор --- */
.cur { position: absolute; width: 3.4cqw; height: 3.4cqw; opacity: 0; pointer-events: none; }
.cur svg { width: 100%; height: 100%; filter: drop-shadow(0 0.3cqw 0.6cqw rgba(0, 0, 0, .35)); }

/* --- анимация запускается, когда сцена видна --- */
.stage [data-anim] { opacity: 0; }
.stage.run [data-anim] { animation-fill-mode: both; animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .9, .3, 1); }
.stage.run [data-anim="up"] { animation-name: sUp; }
.stage.run [data-anim="left"] { animation-name: sLeft; }
.stage.run [data-anim="right"] { animation-name: sRight; }
.stage.run [data-anim="pop"] { animation-name: sPop; }
.stage.run [data-anim="fade"] { animation-name: sFade; }
@keyframes sUp { from { opacity: 0; transform: translateY(3cqw); } to { opacity: 1; transform: none; } }
@keyframes sLeft { from { opacity: 0; transform: translateX(-4cqw); } to { opacity: 1; transform: none; } }
@keyframes sRight { from { opacity: 0; transform: translateX(4cqw); } to { opacity: 1; transform: none; } }
@keyframes sPop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes sFade { from { opacity: 0; } to { opacity: 1; } }

.stage.run .cur { animation: curMove var(--cur-dur, 1.4s) both; animation-delay: var(--cur-at, 0s); }
@keyframes curMove {
  0% { opacity: 0; transform: translate(var(--cur-fx, 0), var(--cur-fy, 6cqw)); }
  18% { opacity: 1; }
  70%, 100% { opacity: 1; transform: none; }
}

.stage.run .scan { animation: scanMove 1.5s ease-in-out both; animation-delay: var(--scan-at, .6s); }
@keyframes scanMove {
  0% { opacity: 0; top: 12%; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: 88%; }
}

.scene-replay {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-strong);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .scenes { gap: 48px; }
  .scene-row, .scene-row.flip { grid-template-columns: 1fr; gap: 20px; }
  .scene-row.flip .scene-frame { order: 0; }
  .scene-row.flip .scene-note { order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .stage [data-anim] { opacity: 1 !important; animation: none !important; transform: none !important; }
  .stage .cur, .stage .scan { animation: none !important; opacity: 0 !important; }
  .typing i { animation: none !important; }
}

/* --- индикатор набора и подмена строки в сцене «касса» --- */
.typing { opacity: 0; }
.stage.run .typing { animation: blip 2.8s both; }
@keyframes blip { 0% { opacity: 0 } 12% { opacity: 1 } 74% { opacity: 1 } 86%, 100% { opacity: 0 } }

.till-swap { position: relative; }
.till-swap .till-row.done { position: absolute; inset: 0; margin: 0; }

/* --- блок приложения оператора --- */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}
.phone-frame {
  max-width: 300px;
  margin: 0 auto;
  padding: 10px;
  background: #101114;
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(11, 11, 12, 0.24);
}
.phone-frame img { border-radius: 22px; display: block; width: 100%; height: auto; }
.app-text .section-title { text-align: left; margin-bottom: 16px; }
.app-text > p { margin-bottom: 20px; }
.app-list { list-style: none; margin-bottom: 20px; }
.app-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.app-list li b { color: var(--text); }
.app-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 2px;
  background: var(--primary);
}
.app-note { font-size: 16px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; gap: 28px; }
  .app-text .section-title { text-align: center; }
  .phone-frame { max-width: 260px; }
}

/* Снимок телефона не подчиняется общему ограничению высоты галереи */
.phone-frame.screenshot-card { text-align: initial; }
.phone-frame.screenshot-card img {
  max-height: none;
  width: 100%;
  border: 0;
  box-shadow: none;
  margin: 0;
}
.phone-frame.screenshot-card img:hover { transform: none; box-shadow: none; }

/* ============================================================
   Живые диалоги, помощник мастеров и аналитика
   ============================================================ */

.smart-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 48px;
  align-items: center;
  margin-top: 44px;
}
.smart-lead h3 { font-size: clamp(21px, 1.2vw + 15px, 29px); margin-bottom: 14px; }
.smart-lead p { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 14px; }

.phone-video {
  max-width: 300px;
  margin: 0 auto;
  padding: 10px;
  background: #101114;
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(11, 11, 12, 0.24);
  position: relative;
}
.phone-video video { display: block; width: 100%; height: auto; border-radius: 22px; }
.phone-video .video-toggle { right: 18px; bottom: 18px; opacity: .8; }

.smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.smart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(11, 11, 12, 0.07);
  overflow: hidden;
}
.smart-card img { display: block; width: 100%; height: auto; }
.smart-card figcaption { padding: 20px 24px 24px; }
.smart-card b { display: block; font-size: 18px; margin-bottom: 8px; color: var(--text); }
.smart-card span { font-size: 16px; line-height: 1.55; color: var(--text-secondary); }

.crew-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 40px;
  align-items: center;
  margin-top: 44px;
}
.crew-text h3 { font-size: clamp(20px, 1.1vw + 15px, 27px); margin-bottom: 12px; }
.crew-text p { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 14px; }
.crew-got {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(11, 11, 12, 0.08);
}
.crew-got img { display: block; width: 100%; height: auto; }
.crew-cap { font-size: 15px; color: var(--text-secondary); margin-top: 10px; }

.metrika-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.metrika-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(11, 11, 12, 0.08);
  background: #fff;
}
.metrika-shot img { display: block; width: 100%; height: auto; }
.metrika-text p { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 14px; }

@media (max-width: 900px) {
  .smart-lead { grid-template-columns: 1fr; gap: 26px; }
  .smart-grid { grid-template-columns: 1fr; gap: 24px; }
  .crew-grid { grid-template-columns: 1fr; gap: 26px; }
  .metrika-grid { grid-template-columns: 1fr; gap: 24px; }
  .phone-video { max-width: 270px; }
}

/* --- Помощник мастеров без телефона: две колонки по центру --- */
.crew-grid.crew-two {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .crew-grid.crew-two { grid-template-columns: 1fr; }
}

/* ============================================================
   Переключатели десктоп/мобилка и HTML-замены мелких скринов
   ============================================================ */
.only-m { display: none; }
@media (max-width: 760px) {
  .only-d { display: none; }
  .only-m { display: block; }
}

/* дополнительная строка hero */
.hero-more { margin-top: 14px; font-size: 17px; color: var(--text-secondary); }

/* каналы обращений: полосы, читаемые на любом экране */
.chan-bars {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(11, 11, 12, 0.07);
  padding: 18px 20px;
  max-width: 560px;
}
.cb-row { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 10px; }
.cb-row:last-child { margin-bottom: 0; }
.cb-name { font-size: 15px; font-weight: 600; color: var(--text); }
.cb-track { display: block; height: 12px; border-radius: 6px; background: #F1F3F7; overflow: hidden; }
.cb-track i { display: block; height: 100%; min-width: 10px; border-radius: 6px; background: var(--primary-strong); }
.cb-row b { font-size: 15px; text-align: right; color: var(--text); }

/* счётчики заказов на мобильном */
.mini-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mc { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 10px; text-align: center; }
.mc b { display: block; font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; }
.mc span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-secondary); }

/* незакрытые платежи на мобильном */
.mini-fin { background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 14px; padding: 14px 16px; }
.mf-head { font-size: 16px; font-weight: 700; color: #9A3412; margin-bottom: 10px; }
.mf-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 15px; color: var(--text); }
.mf-row:last-child { margin-bottom: 0; }
.mf-row i { font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: var(--primary-strong); border-radius: 8px; padding: 6px 10px; }


/* --- Мобильный: сцены выше и с ещё более крупным текстом --- */
@media (max-width: 760px) {
  .stage { aspect-ratio: 4 / 5; }
  .st-bar { height: 10.5cqw; }
  .st-title { font-size: 3.9cqw; }
  .st-body { inset: 10.5cqw 0 0 0; }
  .chip { font-size: 3cqw; padding: 1.2cqw 1.8cqw; }
  .msg { font-size: 3.7cqw; max-width: 92%; }
  .msg-who { font-size: 2.8cqw; }
  .msg-line { font-size: 3.3cqw; }
  .row { grid-template-columns: auto 1fr auto; padding: 2.4cqw 2.4cqw; }
  .row-name { font-size: 3.5cqw; }
  .row-text { font-size: 3.1cqw; }
  .counter { font-size: 3.1cqw; }
  .till-head { font-size: 3.7cqw; }
  .till-row { font-size: 3.4cqw; }
  .till-btn { font-size: 3cqw; }
  .till-note { font-size: 3.1cqw; }
}

/* ============================================================
   Ночная сцена: бот отвечает, пока сервис спит
   ============================================================ */
.night-sec { padding-top: 0; }
.night-card {
  position: relative;
  overflow: hidden;
  background-color: #101B33;
  background-image: linear-gradient(155deg, #101B33 0%, #14233F 55%, #182B47 100%);
  border-radius: 26px;
  padding: 40px 44px 32px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 30px 70px rgba(11, 20, 38, 0.35);
}
.night-stage { max-width: 640px; margin: 0 auto; }
.night-card h2 {
  color: #F4F7FC;
  font-size: clamp(24px, 2vw + 14px, 40px);
  line-height: 1.15;
  max-width: 21ch;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.night-card h2 em { font-style: normal; color: #FFA94D; }
.night-sky { position: absolute; inset: 0; pointer-events: none; }
.night-sky i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #E8EEFF; opacity: .65;
  animation: twinkle 3.2s ease-in-out infinite;
}
.night-sky i:nth-child(2n) { animation-delay: 1.1s; transform: scale(.7); }
.night-sky i:nth-child(3n) { animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: .25 } 50% { opacity: .85 } }
.moon {
  position: absolute; right: 7%; top: 12%;
  width: 58px; height: 58px; border-radius: 50%;
  background: transparent;
  box-shadow: -14px 8px 0 6px #F2D98C;
  transform: rotate(-14deg);
  opacity: .9;
}

/* ночной чат в механике .stage */
.night-stage {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  font-size: 1cqw;
  padding: 0;
  position: relative;
  z-index: 1;
}
.nmsg {
  max-width: 72%;
  border-radius: 2.2cqw;
  padding: 2cqw 2.6cqw;
  font-size: 2.6cqw;
  line-height: 1.5;
  margin-bottom: 1.8cqw;
  color: #EAF0FA;
}
.n-client { background: rgba(233, 240, 252, 0.12); border: 0.22cqw solid rgba(233, 240, 252, 0.14); }
.n-bot { background: #1E3A5F; margin-left: auto; border: 0.22cqw solid rgba(120, 170, 255, 0.25); }
.nwho { display: flex; align-items: center; gap: 1cqw; font-size: 1.9cqw; font-weight: 700; color: #BFD0E8; margin-bottom: 0.8cqw; }
.nwho img { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; }
.n-bot b { color: #FFC078; }
.n-typing { background: #1E3A5F; }
.n-typing i { background: #7FA8DC; }
.night-pill {
  width: fit-content;
  margin: 1cqw auto 0;
  background: #C94B00;
  color: #fff;
  font-size: 2.5cqw;
  font-weight: 800;
  padding: 1.3cqw 2.6cqw;
  border-radius: 1.6cqw;
  box-shadow: 0 1.6cqw 3.6cqw rgba(201, 75, 0, 0.45);
}
.night-cap { margin-top: 22px; font-size: 15px; color: #A9BBD6; position: relative; z-index: 1; }

@media (max-width: 760px) {
  .night-card { padding: 30px 22px 26px; border-radius: 20px; }
  .nmsg { max-width: 88%; font-size: 4cqw; border-radius: 3cqw; padding: 2.8cqw 3.4cqw; }
  .nwho { font-size: 3cqw; }
  .nwho img { width: 4.6cqw; height: 4.6cqw; }
  .night-pill { font-size: 3.7cqw; padding: 2cqw 3.6cqw; border-radius: 2.2cqw; }
}

/* --- Чинители: три колонки --- */
/* Чинители: текст + стопка из двух карточек */
.crew-grid.crew-stack {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.crew-shots { display: grid; gap: 26px; }
.crew-shots .crew-got img { width: 100%; }
@media (max-width: 900px) {
  .crew-grid.crew-stack { grid-template-columns: 1fr; }
}

/* ============================================================
   Сервисный режим и поиск по базе — лупы
   ============================================================ */
.chip-srv { background: #EDE9FE; color: #6D28D9; }
.srv-stage { aspect-ratio: auto; padding-bottom: 3cqw; }
.srv-stage .st-body { position: static; padding-top: 10.4cqw; }
.srv-q { font-weight: 600; }
.srv-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2cqw; margin-top: 1cqw; }
.srv-block { background: #fff; border: 0.22cqw solid #EDEFF3; border-radius: 1.6cqw; padding: 2cqw 2.2cqw; }
.srv-block > b { display: block; font-size: 2.2cqw; margin-bottom: 1.4cqw; color: #0B0B0C; }
.srv-row { display: flex; justify-content: space-between; gap: 1.5cqw; padding: 1cqw 0; border-bottom: 0.18cqw solid #F0F2F6; font-size: 2.1cqw; }
.srv-row:last-child { border-bottom: 0; }
.srv-row span { color: #414755; }
.srv-row i { font-style: normal; color: #5B6270; white-space: nowrap; }
.srv-row i b { color: #0B0B0C; }
.srv-pill { width: fit-content; margin: 2.2cqw auto 0; background: var(--primary-strong); color: #fff;
  font-size: 2.2cqw; font-weight: 800; padding: 1.2cqw 2.4cqw; border-radius: 1.4cqw; }

.kb-stage { aspect-ratio: auto; padding-bottom: 3cqw; }
.kb-stage .st-body { position: static; padding-top: 10.4cqw; }
.kb-box { background: #fff; border: 0.25cqw solid #D8DDE6; border-radius: 1.6cqw; padding: 2cqw 2.4cqw; font-size: 2.5cqw; color: #0B0B0C; }
.kb-type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom;
  border-right: 0.4cqw solid #2563EB; width: 0; }
.stage.run .kb-type { animation: kbType 1.8s steps(25, end) 0.4s forwards; }
@keyframes kbType { from { width: 0 } to { width: 25.5ch } }
.kb-ans { background: #fff; border: 0.22cqw solid #EDEFF3; border-radius: 1.6cqw; padding: 2.2cqw 2.6cqw; margin-top: 2cqw; }
.kb-ans > b { display: block; font-size: 1.9cqw; letter-spacing: .08em; text-transform: uppercase; color: #6D28D9; margin-bottom: 1.4cqw; }
.kb-li { position: relative; padding-left: 2.4cqw; font-size: 2.5cqw; margin-bottom: 1cqw; color: #0B0B0C; }
.kb-li::before { content: ''; position: absolute; left: 0; top: 1cqw; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #6D28D9; }
.kb-src { margin-top: 1.6cqw; padding-top: 1.4cqw; border-top: 0.18cqw dashed #D8DDE6; font-size: 2cqw; color: #5B6270; }

@media (max-width: 760px) {
  .srv-grid { grid-template-columns: 1fr; }
  .srv-q { font-size: 3.6cqw; }
  .srv-block > b { font-size: 3.2cqw; }
  .srv-row { font-size: 3cqw; }
  .srv-pill { font-size: 3.2cqw; padding: 1.8cqw 3.2cqw; }
  .kb-box { font-size: 3.4cqw; }
  .kb-li { font-size: 3.4cqw; }
  .kb-ans > b { font-size: 2.8cqw; }
  .kb-src { font-size: 2.9cqw; }
}


/* --- Сервисный режим: цвета категорий, бейджи, курсор --- */
.sb-work { color: #6D28D9 !important; }
.sb-sup { color: #2563EB !important; }
.sr-copy, .sr-soft, .sr-oled, .sr-orig {
  display: inline-block; font-weight: 700; border-radius: 0.8cqw; padding: 0.35cqw 1cqw;
}
.sr-copy { background: #EAF1FE; color: #1D4ED8; }
.sr-soft { background: #F1EAFE; color: #6D28D9; }
.sr-oled { background: #FFF0E1; color: #B45309; }
.sr-orig { background: #E4F8EC; color: #15803D; }
.srv-badges { display: flex; justify-content: center; gap: 1.6cqw; margin-top: 2.4cqw; flex-wrap: wrap; }
.srv-badge {
  font-size: 2.1cqw; font-weight: 700; color: #1D4ED8;
  background: #EAF1FE; border: 0.22cqw solid #C7DBFB;
  padding: 1cqw 2cqw; border-radius: 1.2cqw;
}
.srv-badge.sb-green { color: #15803D; background: #E4F8EC; border-color: #BBE9CD; }
.srv-cur { left: auto; right: 16cqw; top: 50cqw; width: 3cqw; height: 3cqw; }
.stage.run .srv-cur { animation: srvCur 2s ease-in-out both; animation-delay: 4.6s; }
@keyframes srvCur {
  0% { opacity: 0; transform: translate(6cqw, 10cqw); }
  25% { opacity: 1; }
  70%, 100% { opacity: 1; transform: translate(0, 0); }
}
.srv-hot { position: relative; border-radius: 1cqw; }
.stage.run .srv-hot::after {
  content: ''; position: absolute; inset: -0.5cqw -0.9cqw;
  border: 0.35cqw solid var(--orange, #FF6B00); border-radius: 1.2cqw;
  box-shadow: 0 0 0 0.6cqw rgba(255, 107, 0, 0.14);
  opacity: 0; animation: srvHl 0.5s cubic-bezier(.2,1.5,.4,1) forwards; animation-delay: 6.2s;
}
@keyframes srvHl { from { opacity: 0; transform: scale(.92) } to { opacity: 1; transform: none } }
@media (max-width: 760px) {
  .srv-badge { font-size: 3.1cqw; padding: 1.6cqw 2.8cqw; }
  .srv-cur { display: none; }
}
