/* Shift Inspector Bot — лендинг. Палитра аватара бота: синий, тёмно-синий, белый, зелёная галочка.
   Строгий корпоративный тон: мягкие тени, тонкие линии, иконки вместо эмодзи. */

:root {
  --navy: #1b3360;
  --navy-2: #24406f;
  --navy-deep: #12244a;
  --blue: #2f7fe8;
  --blue-600: #1f6ad6;
  --blue-50: #eef4fd;
  --blue-100: #dbe8fb;
  --blue-200: #c3d8f7;
  --green: #2eaa4f;
  --green-50: #e6f6eb;
  --amber: #e9a23b;
  --amber-50: #fdf3e2;
  --red: #e0474c;
  --red-50: #fdecec;
  --ink: #16284a;
  --muted: #5b6b86;
  --line: #dbe4f1;
  --bg: #f5f8fd;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(27, 51, 96, 0.10), 0 2px 6px rgba(27, 51, 96, 0.06);
  --shadow-lg: 0 24px 60px rgba(27, 51, 96, 0.18);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(34px, 4.8vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.bg-soft { background: var(--bg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.eyebrow .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--blue); color: var(--white); stroke-width: 2.5; }

.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 680px; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.accent { color: var(--blue); }

/* Иконки из спрайта */
.ico {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.tile {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue);
  flex-shrink: 0;
}
.tile .ico { width: 24px; height: 24px; }
.tile.green { background: var(--green-50); color: var(--green); }
.tile.amber { background: var(--amber-50); color: #c47f12; }
.tile.navy { background: var(--navy); color: var(--white); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font: 700 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(47, 127, 232, .28);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(47, 127, 232, .34); }
.btn .ico { width: 18px; height: 18px; }
.btn.ghost { background: var(--white); color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--blue-200); background: var(--blue-50); }
.btn.white { background: var(--white); color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn.white:hover { background: var(--blue-50); }
.btn.outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn.outline-white:hover { background: rgba(255,255,255,.1); }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--navy); text-decoration: none; letter-spacing: -.01em; line-height: 1.15; }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
.logo small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--navy); background: var(--blue-50); }
.nav .btn { color: var(--white); padding: 11px 18px; font-size: 15px; margin-left: 8px; }
.nav .btn:hover { color: var(--white); background: var(--blue-600); }
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  place-items: center;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--blue-100), transparent 60%),
    linear-gradient(var(--bg), var(--white));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 .check {
  display: inline-grid;
  place-items: center;
  width: 1.05em; height: 1.05em;
  vertical-align: -.12em;
  background: var(--green);
  color: var(--white);
  border-radius: .2em;
  font-size: .9em;
  box-shadow: 0 10px 24px rgba(46, 170, 79, .35);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: 15px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 18px; height: 18px; color: var(--green); stroke-width: 2.6; }

.hero-stage { position: relative; min-height: 580px; display: grid; place-items: center; }
.hero-circle {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b95f0, var(--blue) 45%, var(--blue-600));
  box-shadow: inset 0 -30px 60px rgba(18, 36, 74, .2);
  z-index: 0;
}
.hero-ava {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 6%;
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.badge {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: var(--navy);
  white-space: nowrap;
}
.badge .tile { width: 32px; height: 32px; border-radius: 9px; }
.badge .tile .ico { width: 18px; height: 18px; }
.badge small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.badge.b1 { left: 0; top: 0; }
.badge.b2 { right: 0; bottom: 24px; }

/* Мини-табель */
.mini-sheet {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 110px;
  width: min(300px, 64%);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
}
.mini-sheet header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--navy); color: var(--white); font-weight: 700; }
.mini-sheet header .ico { width: 16px; height: 16px; }
.mini-sheet table { width: 100%; border-collapse: collapse; }
.mini-sheet th, .mini-sheet td { border-bottom: 1px solid var(--line); padding: 7px 4px; text-align: center; font-weight: 700; }
.mini-sheet tr:last-child td { border-bottom: 0; }
.mini-sheet th { color: var(--muted); font-size: 12px; background: var(--blue-50); }
.mini-sheet td:first-child, .mini-sheet th:first-child { text-align: left; padding-left: 12px; }
.mini-sheet td.cell { width: 40px; font-size: 0; height: 37px; }
.mini-sheet td.cell.on::before {
  content: "1";
  display: inline-grid; place-items: center;
  width: 24px; height: 22px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--green-50);
  color: var(--green);
}
.mini-sheet td.cell.pop::before { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1); background: var(--green); color: var(--white); }
@keyframes pop { 0% { transform: scale(.2); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- Телефон и чат Telegram ---------- */
.phone {
  position: relative;
  z-index: 2;
  width: 320px;
  max-width: 100%;
  background: var(--navy-deep);
  border-radius: 40px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%;
  width: 84px; height: 20px;
  translate: -50% 0;
  background: var(--navy-deep);
  border-radius: 0 0 14px 14px;
  z-index: 4;
}
.screen {
  background: #dfe9f5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.45) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.35) 0 3px, transparent 4px);
  background-size: 80px 80px, 60px 60px;
  border-radius: 30px;
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.hero .phone { margin-right: 18%; }
.hero .screen { height: 500px; }
.hero .tg-body { overflow: hidden; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 34px 14px 10px; background: var(--white); border-bottom: 1px solid #e3e8ef; flex-shrink: 0; }
.tg-back { color: var(--blue); font-size: 24px; line-height: 1; }
.tg-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-600);
  flex-shrink: 0;
  overflow: hidden;
}
.tg-ava img { width: 100%; height: 100%; object-fit: cover; }
.tg-ava .ico { width: 20px; height: 20px; }
.tg-title { font-weight: 700; font-size: 15px; line-height: 1.2; color: #111; }
.tg-sub { font-size: 12.5px; color: #8a94a3; }
.tg-body { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; scrollbar-width: thin; color: #111; }
.tg-body > :first-child { margin-top: auto; }
.msg {
  max-width: 86%;
  background: var(--white);
  border-radius: 14px 14px 14px 4px;
  padding: 7px 10px 6px;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  align-self: flex-start;
  white-space: pre-line;
  animation: msgIn .35s ease both;
  overflow-wrap: anywhere;
}
.msg.out { align-self: flex-end; background: #e2f1ff; border-radius: 14px 14px 4px 14px; }
.msg .who { font-weight: 700; font-size: 13px; color: var(--blue-600); }
.msg .time { float: right; margin: 6px 0 -2px 10px; font-size: 11px; color: #9aa3b1; }
.msg.out .time { color: var(--blue); }
.msg.out .time::after { content: " ✓✓"; }
.msg b { font-weight: 700; }
.msg .lnk { color: var(--blue); }
.msg.photo { padding: 4px; max-width: 74%; }
.msg.photo .cap { padding: 5px 6px 2px; }
.msg.photo .who { padding: 2px 6px 4px; }
.pic {
  height: 120px;
  border-radius: 11px;
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.pic svg { width: 58%; height: auto; display: block; }
.pic.p1 { background: linear-gradient(160deg, #c9dcf6, #8fb5ea); }
.pic.p2 { background: linear-gradient(160deg, #d6e2f2, #9fb6d6); }
.pic.p3 { background: linear-gradient(160deg, #cfe8d8, #8cc4a0); }
.pic.p4 { background: linear-gradient(160deg, #e3e6ee, #aab4c8); }
.hero .pic { height: 140px; }
.sys { align-self: center; background: rgba(27, 51, 96, .35); color: var(--white); font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; text-align: center; max-width: 90%; animation: msgIn .35s ease both; }
.file { display: flex; align-items: center; gap: 10px; padding: 2px 0 4px; }
.file .fi { width: 42px; height: 42px; border-radius: 50%; background: #1f7a45; color: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.file .fi.blue { background: var(--blue); }
.file .fi .ico { width: 20px; height: 20px; }
.file b { display: block; font-size: 13.5px; }
.file small { color: #8a94a3; font-size: 12px; }
.toast {
  align-self: center;
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 12px;
  border-left: 4px solid var(--green);
  box-shadow: 0 6px 16px rgba(27,51,96,.15);
  animation: msgIn .4s .3s ease both;
}
.toast .ico { width: 16px; height: 16px; color: var(--green); stroke-width: 2.6; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* Кнопки под сообщением и клавиатура */
.ikb { display: flex; flex-direction: column; gap: 4px; margin-top: -4px; align-self: flex-start; width: 86%; animation: msgIn .35s ease both; }
.ikb .row, .rkb .row { display: flex; gap: 4px; }
.ikb button, .rkb button, .start-btn {
  flex: 1;
  font: 600 13px/1.25 var(--font);
  color: var(--white);
  background: rgba(27, 51, 96, .38);
  border: none;
  border-radius: 9px;
  padding: 8px 6px;
  cursor: default;
  position: relative;
}
.rkb { flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; padding: 7px; background: #eef1f5; border-top: 1px solid #dde2e9; }
.rkb .row { gap: 5px; }
.rkb button { background: var(--white); color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.15); padding: 11px 6px; font-size: 14px; }
.tg-input { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; background: var(--white); border-top: 1px solid #e3e8ef; color: #a3acb9; font-size: 14px; }
.tg-input .pill { flex: 1; }
.tg-input .ico { width: 20px; height: 20px; }
.start-wrap { flex-shrink: 0; padding: 10px 12px 16px; background: var(--white); border-top: 1px solid #e3e8ef; }
.start-btn { width: 100%; background: var(--blue); padding: 12px; font-size: 14px; letter-spacing: .06em; font-weight: 700; }

/* «Куда нажать»: зелёная кнопка с пульсирующей точкой касания */
.is-hl {
  background: var(--green) !important;
  color: var(--white) !important;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--green) !important;
  z-index: 2;
  padding-right: 26px !important;
}
.is-hl::after {
  content: "";
  position: absolute;
  right: 9px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--white);
  animation: tap 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes tap {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.85); }
  70% { box-shadow: 0 0 0 11px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---------- Цифры ---------- */
.stats { padding: 0; background: var(--navy); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 26px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; line-height: 1; margin-bottom: 10px; letter-spacing: -.02em; }
.stat b em { font-style: normal; color: #7fb3f5; }
.stat span { font-size: 15px; color: #b8c6de; font-weight: 500; }

/* ---------- Было / стало ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 8px; margin-bottom: 14px; }
.card.before .tag { background: var(--red-50); color: var(--red); }
.card.after { background: linear-gradient(150deg, var(--blue), var(--blue-600)); border-color: transparent; color: var(--white); }
.card.after h3 { color: var(--white); }
.card.after .tag { background: rgba(255,255,255,.18); color: var(--white); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.before .checklist li { color: var(--muted); }
.before .checklist li::before {
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0474c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.after .checklist li::before { background-color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232eaa4f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.step-top::after { counter-increment: step; content: "0" counter(step); font-weight: 800; font-size: 28px; color: var(--blue-100); letter-spacing: -.02em; }
.step p { font-size: 15.5px; color: var(--muted); margin: 0; }
.step .eg { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--navy); background: var(--blue-50); border-radius: 10px; padding: 9px 12px; }

.lights { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.light { background: var(--white); border: 1px solid var(--line); border-left-width: 5px; border-radius: 14px; padding: 20px 22px; }
.light h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 17px; }
.light h3 .ico { width: 20px; height: 20px; }
.light p { margin: 0; font-size: 15px; color: var(--muted); }
.light.green { border-left-color: var(--green); } .light.green h3 .ico { color: var(--green); }
.light.amber { border-left-color: var(--amber); } .light.amber h3 .ico { color: var(--amber); }
.light.gray { border-left-color: #8d9ab0; } .light.gray h3 .ico { color: #8d9ab0; }

/* ---------- Роли и инструкции ---------- */
.roles-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; padding: 6px; background: var(--blue-50); border-radius: 16px; width: fit-content; max-width: 100%; }
.role-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font: 700 15.5px/1 var(--font);
  color: var(--navy-2);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.role-tab .ico { width: 19px; height: 19px; }
.role-tab:hover { background: rgba(255,255,255,.7); }
.role-tab[aria-selected="true"] { background: var(--white); color: var(--blue-600); box-shadow: 0 4px 12px rgba(27,51,96,.12); }

.role-panel { border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); background: var(--white); padding: clamp(20px, 3vw, 36px); }
.role-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.role-intro h3 { font-size: clamp(21px, 2.2vw, 26px); display: flex; gap: 14px; align-items: center; }
.role-intro p { color: var(--muted); margin: 0; }
.role-menu { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.role-menu small { font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.role-menu .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-block; padding: 7px 12px; border-radius: 9px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--navy); }
.btn-ref { display: inline-block; padding: 0 .45em; border-radius: 6px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--navy); font-weight: 700; font-size: .92em; white-space: nowrap; line-height: 1.5; }

.guide-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.guide-pill { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 600 14.5px/1.2 var(--font); color: var(--navy-2); cursor: pointer; transition: all .15s; }
.guide-pill:hover { border-color: var(--blue-200); }
.guide-pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.guide { display: grid; grid-template-columns: 1fr 330px; gap: clamp(24px, 4vw, 52px); align-items: start; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-step {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  text-align: left; width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font: 500 15.5px/1.55 var(--font);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.guide-step:hover { border-color: var(--blue-200); background: var(--bg); }
.guide-step .n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); font-weight: 800; font-size: 14px; }
.guide-step[aria-current="step"] { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(47,127,232,.12); }
.guide-step[aria-current="step"] .n { background: var(--blue); color: var(--white); }
.guide-nav { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.guide-nav .btn { padding: 11px 18px; font-size: 15px; }
.guide-nav .btn[disabled] { opacity: .45; pointer-events: none; }
.guide-phone { position: sticky; top: 90px; justify-self: center; }
.guide-phone .phone { width: 330px; }
.guide-phone .screen { height: min(600px, calc(100vh - 130px)); min-height: 480px; }

.tips { margin-top: 26px; border-radius: 16px; padding: 18px 22px; background: var(--bg); border: 1px solid var(--line); }
.tips h4 { margin: 0 0 10px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.tips h4 .ico { width: 18px; height: 18px; color: var(--blue); }
.tips ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.tips b { color: var(--navy); }

/* ---------- Запуск ---------- */
.launch { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--white); }
.launch h2, .launch h3 { color: var(--white); }
.launch .lead { color: #b8c6de; }
.launch .eyebrow { background: rgba(255,255,255,.1); color: #cfe0fa; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 28px; border-top: 2px dashed rgba(255,255,255,.25); }
.tl-item { position: relative; text-align: center; }
.tl-item .tile { margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: var(--white); box-shadow: 0 0 0 6px var(--navy); }
.tl-item:last-child .tile { background: var(--green); }
.tl-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.tl-item p { font-size: 14.5px; color: #b8c6de; margin: 0; }
.tl-item .who { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.1); color: #cfe0fa; }

/* ---------- Что если ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.case:hover { box-shadow: var(--shadow); border-color: var(--blue-100); transform: translateY(-2px); }
.case .q { font-weight: 800; font-size: 16.5px; color: var(--navy); display: flex; gap: 12px; align-items: center; line-height: 1.3; }
.case .q .tile { width: 40px; height: 40px; border-radius: 11px; }
.case .q .tile .ico { width: 20px; height: 20px; }
.case .a { font-size: 15px; color: var(--muted); margin: 0; }
.verdict { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verdict.ok { background: var(--green-50); color: #1f8a3e; }
.verdict.op { background: var(--amber-50); color: #b06f0c; }
.verdict.log { background: #eef1f6; color: #5f6d84; }
.verdict.cfg { background: var(--blue-50); color: var(--blue-600); }

/* ---------- Excel ---------- */
.report-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.report .checklist { margin-top: 8px; }
.xl { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.xl-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #1f7a45; color: var(--white); font-weight: 700; font-size: 14px; }
.xl-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.xl-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); display: block; }
.xl-scroll { overflow-x: auto; }
.xl table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 560px; }
.xl th, .xl td { border: 1px solid #e3e7ee; padding: 7px 6px; text-align: center; white-space: nowrap; }
.xl th { background: #f4f6f9; font-weight: 700; color: var(--muted); }
.xl td.name { text-align: left; font-weight: 600; padding-left: 10px; }
.xl td.one { color: var(--blue-600); text-decoration: underline; font-weight: 700; cursor: pointer; background: #f0f7f2; }
.xl td.one:hover { background: var(--blue-100); }
.xl td.total { font-weight: 800; background: #f4f6f9; }
.xl td.st-ok { color: #1f8a3e; font-weight: 700; }
.xl td.st-op { color: #b06f0c; font-weight: 700; }
.xl td.st-no { color: var(--red); font-weight: 700; }
.xl td.left { text-align: left; }
.xl-tabs { display: flex; gap: 2px; padding: 0 10px; background: #f4f6f9; border-top: 1px solid #e3e7ee; }
.xl-tab { padding: 9px 16px; border: none; background: transparent; font: 600 13px/1 var(--font); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.xl-tab[aria-selected="true"] { background: var(--white); color: #1f7a45; border-bottom-color: #1f7a45; }
.xl-tip { margin: 0; padding: 10px 14px; font-size: 13.5px; background: var(--blue-50); border-top: 1px solid #e3e7ee; color: var(--muted); min-height: 42px; }
.xl-tip b { color: var(--navy); }

/* ---------- Доверие ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); }
.trust .tile { margin-bottom: 18px; }
.trust p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--blue-100); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 60px 18px 22px; font-weight: 700; font-size: 16.5px; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px;
  border-radius: 8px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7fe8' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Финал ---------- */
.final { padding-block: 64px; }
.final-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: radial-gradient(700px 300px at 0% 0%, #4b95f0, transparent 70%), linear-gradient(140deg, var(--blue), var(--navy));
  color: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 60px);
}
.final-card img { width: clamp(120px, 16vw, 190px); border-radius: 50%; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.final-card h2 { color: var(--white); }
.final-card p { font-size: 18px; color: #dbe8fb; max-width: 600px; margin: 0 0 26px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 10px; }

footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer .logo { font-size: 15px; }
footer .logo img { width: 30px; height: 30px; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media screen and (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cases, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { left: 27px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 2px dashed rgba(255,255,255,.25); }
  .tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; text-align: left; align-items: center; }
  .tl-item .tile { margin: 0; }
}

@media screen and (max-width: 920px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
  }
  .nav.open a { padding: 12px; font-size: 16px; }
  .nav.open .btn { margin: 8px 0 0; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 600px; max-width: 520px; margin-inline: auto; width: 100%; }
  .versus { grid-template-columns: 1fr; }
  .lights { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .role-intro { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .guide-phone { position: static; order: -1; }
  .report-grid { grid-template-columns: 1fr; }
  .final-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .final-card p { margin-inline: auto; }
  .final-actions { justify-content: center; }
}

@media screen and (max-width: 620px) {
  body { font-size: 16px; }
  .steps, .cases, .trust-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 580px; }
  .hero-circle { width: 340px; height: 340px; }
  .hero .phone { margin-right: 0; width: 280px; }
  .hero .screen { height: 460px; }
  .hero-ava { width: 76px; height: 76px; right: 0; top: 0; }
  .badge.b1 { top: auto; bottom: 8px; left: 0; }
  .badge.b2 { display: none; }
  .mini-sheet { bottom: 90px; width: 70%; }
  .guide-phone .phone { width: 300px; }
  .screen { height: 540px; }
  .roles-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .role-tab { justify-content: center; gap: 7px; padding: 11px 4px; font-size: 13.5px; }
  .role-tab .ico { width: 17px; height: 17px; }
  .stat { padding: 24px 16px; }
  .card, .step, .trust { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Как устроено: объекты → группы → чаты операторов ---------- */
.scheme {
  display: grid;
  grid-template-columns: 1fr 36px 1.15fr 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: clamp(18px, 3vw, 30px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.scheme-col { display: grid; gap: 12px; }
.scheme-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.scheme-head .tile { width: 40px; height: 40px; border-radius: 11px; }
.scheme-head .tile .ico { width: 20px; height: 20px; }
.scheme-head b { display: block; color: var(--navy); font-size: 16px; line-height: 1.2; }
.scheme-head small { color: var(--muted); font-size: 13px; }
.scheme-arrow { align-self: center; display: grid; place-items: center; color: var(--blue-200); }
.scheme-arrow .ico { width: 28px; height: 28px; stroke-width: 2.4; }
.node {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(27, 51, 96, .06);
}
.node b { color: var(--navy); font-size: 15px; line-height: 1.25; }
.node small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.node.obj-b { border-left-color: var(--green); }
.node.chat-a { border-left-color: var(--amber); }
.node.chat-b { border-left-color: #8d9ab0; }
.pin {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.obj-b .pin:first-of-type { background: var(--green-50); color: #1f8a3e; }
.pin.chat-a { background: var(--amber-50); color: #b06f0c; }
.pin.chat-b { background: #eef1f6; color: #5f6d84; }

.rules { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rule { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--white); display: flex; flex-direction: column; }
.rule .tile { margin-bottom: 14px; width: 42px; height: 42px; border-radius: 12px; }
.rule .tile .ico { width: 21px; height: 21px; }
.rule h3 { font-size: 17px; margin-bottom: 8px; }
.rule p { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; }
.rule .how-to { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); }
.rule .how-to b { color: var(--navy); }
.role-intro p a { color: var(--blue); font-weight: 600; }

@media screen and (max-width: 1080px) {
  .rules { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 920px) {
  .scheme { grid-template-columns: 1fr; }
  .scheme-arrow { transform: rotate(90deg); height: 28px; }
}
@media screen and (max-width: 620px) {
  .rules { grid-template-columns: 1fr; }
}

/* ---------- Ссылки на бота ---------- */
.tg-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.launch .tg-link { color: var(--white); }
footer a { color: var(--blue-600); }
.faq a, .tips a { color: var(--blue); font-weight: 600; }

/* ---------- Печать и PDF ---------- */
.print-only { display: none; }

@media print {
  @page { size: 1280px 1810px; margin: 34px 40px; }
  html { scroll-behavior: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .topbar { position: static; backdrop-filter: none; }
  .burger { display: none !important; }
  section { padding: 56px 0; }
  .hero { padding-top: 32px; }
  #roles { display: none; }
  .print-only { display: block; }
  .faq details > div { display: block; }
  h2, h3, h4, .section-head { break-after: avoid; }
  .card, .step, .case, .trust, .rule, .light, .tl-item, .faq details, .xl, .final-card, .scheme, .stat,
  .pg-step, .pg-role-head, .tips { break-inside: avoid; }
}

/* Инструкции в PDF: все роли и шаги сеткой */
.pg-role + .pg-role { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
@media print { .pg-role + .pg-role { break-before: page; border-top: 0; padding-top: 0; margin-top: 0; } }
.pg-role-head { display: grid; grid-template-columns: auto 1fr 320px; gap: 18px; align-items: start; margin-bottom: 18px; }
.pg-role-head h3 { font-size: 24px; margin-bottom: 6px; }
.pg-role-head p { color: var(--muted); margin: 0; }
.pg-guide { margin-top: 26px; }
.pg-guide h4 { font-size: 19px; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--blue); }
.pg-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.pg-step { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pg-step > p { margin: 0; font-size: 14px; line-height: 1.5; display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.pg-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-weight: 800; font-size: 13px; }
.pg-step .phone { width: 330px; zoom: .76; align-self: center; box-shadow: none; }
.pg-step .screen { height: auto; min-height: 0; }
.pg-step .tg-body { flex: none; overflow: visible; }
.pg-step .tg-body > :first-child { margin-top: 0; }
.pg-step .msg, .pg-step .ikb, .pg-step .sys, .pg-step .toast { animation: none; }
