:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #5b6878;
  --line: #e1e6ee;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --bot: #eef2f7;
  --user: #1f6feb;
  --wa: #25d366;
  --tg: #2aabee;
  --max: #6b4cff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 35, 60, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #171e27;
    --text: #e7edf5;
    --muted: #9aa7b6;
    --line: #2a3442;
    --bot: #222c38;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
h2 { font-size: 26px; margin: 56px 0 8px; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo__mark { background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.contacts { display: flex; gap: 8px; }
.contacts a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; }

.hero { padding-top: 56px; }
.hero__text { max-width: 720px; }
.hero__lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 6px; color: var(--muted); }
.ticks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 12px 20px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 16px; color: var(--muted); flex: 1; }
.price { font-weight: 700; color: var(--accent); }
.card--link { text-decoration: none; color: var(--text); transition: border-color .15s; }
.card--link:hover { border-color: var(--accent); }
.card--link p { font-size: 14px; }

.steps { padding-left: 20px; display: grid; gap: 10px; max-width: 720px; }

.cta { padding-bottom: 40px; }
.msg-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.msg-buttons a { color: #fff; text-decoration: none; padding: 14px 22px; border-radius: 12px; font-weight: 600; }
.c-wa { background: var(--wa); }
.c-tg { background: var(--tg); }
.c-max { background: var(--max); }
.c-phone { background: var(--accent); }
.c-vk { background: #0077ff; }
.contacts .c-max, .contacts .c-vk { font-size: 11px; }

/* Меню */
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
@media (max-width: 980px) { .nav { display: none; } }
.subnav { display: none; gap: 8px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.subnav a { white-space: nowrap; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
@media (max-width: 980px) { .subnav { display: flex; } }

/* Порталы */
.portals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.portals span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 500; }

/* Оплата по факту */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.promise div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.promise b { display: block; margin-bottom: 4px; font-size: 17px; }
.promise p { margin: 0; color: var(--muted); }

/* Страницы услуг */
.page { max-width: 820px; padding-top: 32px; }
.page h1 { font-size: clamp(26px, 4vw, 38px); }
.page h2 { font-size: 22px; margin-top: 36px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #e8a317; border-radius: 10px; padding: 14px 16px; margin: 20px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 10px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bot); }
/* Программы удалённого доступа */
.progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.prog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.prog__head { display: flex; align-items: center; gap: 12px; }
.prog__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.prog h3 { margin: 0; font-size: 18px; }
.prog p { margin: 0; color: var(--muted); flex: 1; }
.prog__os { font-size: 13px; color: var(--muted); }
.prog__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prog__actions .btn { padding: 9px 14px; font-size: 14px; text-decoration: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bot); color: var(--text); }
.l-anydesk { background: #ef443b; }
.l-assist { background: #1d8f5a; }
.l-rudesk { background: #2463eb; }
.l-rust { background: #3b4552; }
.l-yabro { background: #fc3f1d; }

.os-tabs { display: inline-flex; gap: 4px; background: var(--bot); padding: 4px; border-radius: 12px; margin: 20px 0 4px; flex-wrap: wrap; }
.os-tabs button { border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.os-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.os-panel[hidden] { display: none; }

.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin: 22px 0; }
.step__n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step h3 { margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0 0 8px; }
.dl { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* Макет окна программы */
.mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); max-width: 460px; margin: 12px 0; font-size: 14px; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--bot); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; display: inline-block; }
.mock__bar b { margin-left: 6px; font-weight: 600; color: var(--text); }
.mock__body { padding: 16px; display: grid; gap: 10px; }
.mock__label { font-size: 12px; color: var(--muted); }
.mock__id { font-size: 22px; font-weight: 700; letter-spacing: .04em; padding: 8px 12px; border-radius: 8px; border: 2px dashed #e8a317; background: rgba(232,163,23,.08); display: inline-block; }
.mock__hint { font-size: 13px; color: #b26a00; font-weight: 600; }
.mock__row { display: flex; gap: 8px; justify-content: flex-end; }
.mock__btn { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.mock__btn--ok { background: #1a8f3c; color: #fff; border-color: #1a8f3c; outline: 3px solid rgba(232,163,23,.6); }
.mock__toggle { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.mock__switch { width: 34px; height: 20px; border-radius: 999px; background: #34c759; position: relative; }
.mock__switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

.yes { color: #1a8f3c; font-weight: 600; }
.no { color: #c62828; font-weight: 600; }
.maybe { color: #b26a00; font-weight: 600; }

.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 100px; }
.foot p { margin: 4px 0; }

/* Чат */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 20px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow);
}
.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat[hidden] { display: none; }
.chat__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--accent); color: #fff; }
.chat__close { background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg--bot { background: var(--bot); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--user); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg code { background: rgba(127,127,127,.18); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.msg--typing { color: var(--muted); }
.msg__cta { margin-top: 8px; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat__quick button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat__form textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: inherit; background: var(--bg); color: var(--text); max-height: 120px;
}
.chat__form .btn { padding: 10px 14px; }
.chat__menu { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; width: 42px; font-size: 18px; cursor: pointer; flex: none; }
.chat__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px 10px; font-size: 12px; color: var(--muted); }
.chat__foot button { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; padding: 4px 0; }
.chat-btns { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.chat-btns--row { flex-direction: row; flex-wrap: wrap; }
.chat-btn { text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 10px 14px; min-height: 44px; font: inherit; font-size: 15px; cursor: pointer; }
.chat-btn:hover { border-color: var(--accent); }
.chat-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chat-btn--ghost { border-color: transparent; background: none; color: var(--accent); font-weight: 600; }
.lead select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400; background: var(--bg); color: var(--text); }

/* Заявка */
.lead { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.lead::backdrop { background: rgba(10, 15, 25, .5); }
.lead form { padding: 24px; display: grid; gap: 12px; }
.lead h3 { margin: 0; }
.lead label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.lead input:not([type=checkbox]), .lead textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400;
  background: var(--bg); color: var(--text);
}
.lead .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.4; }
.lead .check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.lead__actions { display: flex; justify-content: flex-end; gap: 8px; }
.lead__msg { margin: 0; font-size: 14px; }

/* Нижняя панель связи — только на телефоне */
.mbar { display: none; }
@media (max-width: 600px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 19; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .mbar a { flex: 1; text-align: center; padding: 11px 4px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
  .mbar .c-phone { background: var(--accent); }
  .has-mbar .chat-fab { bottom: 78px; }
  .has-mbar .contacts .c-phone { display: none; }
  .has-mbar .foot { padding-bottom: 150px; }
}

@media (max-width: 600px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .chat-fab span { display: none; }
  h2 { margin-top: 40px; }
}

/* Главная: яркий первый экран, цифры, преимущества, шаги, вопросы */
.hero-band { background: radial-gradient(1200px 400px at 85% 0%, rgba(31,111,235,.18), transparent 70%), linear-gradient(180deg, rgba(31,111,235,.07), transparent); padding-bottom: 40px; }
.hero--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero .hl { color: var(--accent); }
.pill { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(20,35,60,.06); }
.pill:hover { border-color: var(--accent); }
.btn--big { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.btn--primary.btn--big { box-shadow: 0 8px 20px rgba(31,111,235,.35); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--light { background: #fff; color: var(--accent); border-color: #fff; }
.hero__card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.hero__card > b { font-size: 18px; }
.hero__card ol { padding-left: 20px; margin: 12px 0; display: grid; gap: 6px; }
.msg-buttons--small { margin-top: 10px; gap: 8px; }
.msg-buttons--small a { padding: 10px 14px; font-size: 14px; }
@media (max-width: 860px) { .hero--split { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-top: -12px; overflow: hidden; }
.stats div { padding: 20px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 30px; line-height: 1.1; color: var(--accent); letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(31,111,235,.1); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.card--svc { transition: transform .15s, box-shadow .15s; }
.card--svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__foot .price { font-size: 18px; }

.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.feats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feats b { display: block; font-size: 17px; margin-bottom: 4px; }
.feats p { margin: 0; color: var(--muted); }

.flow { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: flow; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: flow; position: relative; }
.flow li::before { content: counter(flow); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.flow b { display: block; font-size: 17px; margin-bottom: 4px; }
.flow p { margin: 0; color: var(--muted); }

.rating { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 20px; flex-wrap: wrap; }
.rating__score { font-size: 64px; font-weight: 800; line-height: 1; color: var(--text); }
.rating__stars { color: #f5a623; font-size: 24px; letter-spacing: 2px; }
.rating > div:last-child { flex: 1; min-width: 240px; }
.rating p { color: var(--muted); margin: 6px 0 14px; }
.rating .btn { text-decoration: none; display: inline-block; }

.faq { display: grid; gap: 10px; margin-top: 20px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta-band { background: linear-gradient(135deg, #1f6feb, #6b4cff); color: #fff; border-radius: 22px; padding: 32px; margin-top: 56px; }
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0 0 18px; opacity: .9; }
.cta-band .msg-buttons a { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }

/* Отзывы с Профи.ру */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.review__stars { color: #f5a623; letter-spacing: 2px; }
.review blockquote { margin: 0; flex: 1; font-size: 16px; }
.review figcaption { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.review__ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1f6feb, #6b4cff); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

/* Прайс по порталам */
.pricelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; margin-top: 16px; }
.pricelist div { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.pricelist small { display: block; color: var(--muted); font-size: 13px; }
.pricelist em { font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Акции */
.promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.promo div { position: relative; background: linear-gradient(135deg, rgba(31,111,235,.08), rgba(107,76,255,.1)); border: 1px solid rgba(31,111,235,.25); border-radius: var(--radius); padding: 20px; }
.promo b { display: block; font-size: 17px; margin: 10px 0 4px; }
.promo p { margin: 0; color: var(--muted); }
.promo__tag { display: inline-block; background: linear-gradient(135deg, #ff5a36, #ff2d75); color: #fff; font-weight: 800; font-size: 18px; padding: 4px 12px; border-radius: 999px; }

