/* Общие стили страниц услуг (реклама, чат-боты, автоматизация). База — ../shared.css, правила — docs/design-system.md */
html, body { background: var(--vectar-granite-black); color: var(--vectar-warm-white); }
body { font-family: var(--vectar-font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
header.on { opacity: 1; }
header::before { opacity: 1; background: linear-gradient(180deg, rgba(8,13,12,.85), rgba(8,13,12,0)); border-bottom: 0; backdrop-filter: none; }
.scrolled header::before { background: rgba(8,13,12,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(124,245,210,.08); }
.btn.big { padding: 17px 30px; font-size: 16px; display: inline-flex; gap: 10px; align-items: center; }
.btn.ghost.big { box-shadow: 0 0 0 1px rgba(124,245,210,.35); }
.accent { font-family: var(--vectar-font-accent); font-weight: 600;
  background: linear-gradient(90deg, var(--vectar-emerald), var(--vectar-mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- главный экран (общая часть) */
.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hero h1 { font-family: var(--vectar-font-heading); font-weight: 700; font-size: clamp(34px, 3.9vw, 62px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.hero .pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; margin-bottom: 22px;
  font-family: var(--vectar-font-accent); font-size: var(--fs-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: rgba(244,247,245,.85);
  background: rgba(20,27,25,.6); border: 1px solid rgba(124,245,210,.25); backdrop-filter: blur(10px); }
.hero .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--vectar-mint); box-shadow: 0 0 10px var(--vectar-mint); }
.hero .hsub { margin-top: 18px; font-size: var(--fs-body); line-height: 1.55; color: rgba(244,247,245,.8); max-width: 600px; text-wrap: pretty; }
.hero .husp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; max-width: 640px; }
.hero .husp div { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 16px; font-size: 14px; line-height: 1.35; color: rgba(244,247,245,.88);
  background: rgba(20,27,25,.55); border: 1px solid rgba(124,245,210,.14); backdrop-filter: blur(14px); }
.hero .husp svg { flex: none; margin-top: 1px; }
.hero .hbtns { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.htext { position: relative; z-index: 3; padding: 110px var(--gutter) 60px; width: min(900px, 58vw); }
.ads-hero h1, .bots-hero h1 { font-size: clamp(32px, 3.4vw, 56px); }
.htext > * { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.shown .htext > * { opacity: 1; transform: none; }
.shown .htext > :nth-child(2) { transition-delay: .08s; } .shown .htext > :nth-child(3) { transition-delay: .16s; }
.shown .htext > :nth-child(4) { transition-delay: .24s; } .shown .htext > :nth-child(5) { transition-delay: .32s; }
.hfade { position: absolute; inset: auto 0 0; height: 26vh; background: linear-gradient(0deg, var(--vectar-granite-black), transparent); z-index: 2; pointer-events: none; }

/* ---------- блоки */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.card2 { padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .3s, background .3s; }
.card2:hover { border-color: rgba(124,245,210,.4); transform: translateY(-3px); background: linear-gradient(160deg, rgba(21,185,129,.12), rgba(8,13,12,.4) 60%); }
.card2 .k { font-family: var(--vectar-font-accent); font-size: var(--fs-eyebrow); letter-spacing: .1em; text-transform: uppercase; color: var(--vectar-mint); }
.card2 .desc { font-size: var(--fs-small); }
.card2 .arrow { color: var(--vectar-mint); font-size: 20px; line-height: 1; }
.card2 .sol { padding-top: 12px; border-top: 1px solid rgba(124,245,210,.14); color: rgba(244,247,245,.92); }
.sec-cta { margin-top: 32px; display: flex; justify-content: center; }
.trust { margin-top: 24px; display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-color: rgba(124,245,210,.3);
  background: linear-gradient(160deg, rgba(21,185,129,.14), rgba(8,13,12,.4) 60%); }
.trust .desc { color: rgba(244,247,245,.9); }
.trust b { color: #fff; }
.note-plain { margin-top: 18px; font-size: var(--fs-small); color: rgba(244,247,245,.6); }
.cross { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.cross a { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .3s; }
.cross a:hover { border-color: rgba(124,245,210,.45); transform: translateY(-3px); }
.cross .eyebrow-s { margin: 0; }
.cross .more { margin-top: 4px; font-family: var(--vectar-font-heading); font-weight: 600; font-size: var(--fs-small); color: var(--vectar-mint); }
.single { grid-template-columns: 1fr; }

/* ---------- чат (визуализация диалогов) */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; min-height: 100%; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .35s, transform .35s; white-space: pre-line; }
.msg.in { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: var(--vectar-gradient); color: var(--vectar-granite-black); border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: rgba(244,247,245,.08); border: 1px solid rgba(124,245,210,.18); border-bottom-left-radius: 5px; }
.msg .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .btns span { padding: 6px 10px; border-radius: 10px; font-size: 12.5px; border: 1px solid rgba(124,245,210,.4); color: var(--vectar-mint); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(244,247,245,.08); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--vectar-mint); animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.phone { position: relative; width: 320px; height: 620px; border-radius: 44px; padding: 12px; flex: none;
  background: linear-gradient(160deg, #1b2422, #070b0a); border: 1px solid rgba(124,245,210,.35);
  box-shadow: 0 0 60px rgba(21,185,129,.25), 0 40px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.15); }
.phone .scr { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #0b110f; display: flex; flex-direction: column; }
.phone .bar { display: flex; align-items: center; gap: 10px; padding: 34px 16px 12px; border-bottom: 1px solid rgba(244,247,245,.06); background: rgba(20,27,25,.8); }
.phone .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--vectar-gradient); display: grid; place-items: center; color: var(--vectar-granite-black); font-weight: 700; font-size: 14px; }
.phone .who b { display: block; font-size: 14px; } .phone .who span { font-size: 11.5px; color: var(--vectar-mint); }
.phone .body { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 14px; background: #000; z-index: 2; }

@media (max-width: 1180px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .htext { width: auto; padding: 100px var(--gutter) 40px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 38px); }
  .hero .husp { grid-template-columns: 1fr; }
  .hero .husp div:nth-child(n+3) { display: none; }
  .hero .hbtns .btn { width: 100%; justify-content: center; }
  .grid4, .grid3, .grid2 { grid-template-columns: 1fr; margin-top: 28px; gap: 10px; }
  .cross { grid-template-columns: 1fr; }
  .phone { width: 290px; height: 560px; }
}

/* шаги: на компьютере в ряд по числу шагов, на телефоне столбиком (правило из shared.css) */
@media (min-width: 1181px) { .steps[style*="--cols"] { grid-template-columns: repeat(var(--cols), 1fr); } }
/* иконки-галочки в плашках не сжимаются */
.trust svg, .husp svg, .guar svg { flex: none; width: 24px; height: 24px; }
/* бургер на телефоне всегда виден и закреплён */
@media (max-width: 820px) { .burger { position: fixed; top: 16px; right: 20px; z-index: 30; } }
/* кнопки на телефоне не выходят за поля страницы: без стрелки, текст чуть меньше, при необходимости в две строки */
@media (max-width: 820px) {
  .sec-cta { padding: 0; }
  .sec-cta .btn.big, .hero .hbtns .btn.big { max-width: 100%; white-space: normal; text-align: center; justify-content: center; font-size: 15px; padding: 15px 22px; line-height: 1.3; }
  .sec-cta .btn.big > span, .hero .hbtns .btn.big > span { display: none; }
}
