/* ==========================================================================
   MEGA — общая таблица стилей сайта
   Собрана 13.08.2026 из инлайн-стилей index/pricing/why/faq/cases.
   Правки внешнего вида делаются ЗДЕСЬ. На страницах остаются только
   уникальные для них правила (см. <style> в конце <head> страницы).
   ========================================================================== */
/* Шрифты — локальные копии, переменные: одна ось веса вместо десятка файлов.
   Раньше грузились со сторонних доменов Google, то есть в критическом пути
   стояли две внешние зависимости. Теперь всё со своего сервера. */
@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-var.woff2') format('woff2-variations'),
       url('/fonts/onest-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrainsmono-var.woff2') format('woff2-variations'),
       url('/fonts/jetbrainsmono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Brand palette — extracted from MEGA brandbook */
  --bg:       #0D0B32;  /* основной тёмно-синий */
  --bg-2:     #11103A;  /* чуть светлее для секций */
  --bg-3:     #161542;  /* карточки */
  --line:     #232255;
  --line-2:   #2E2C68;

  --text:     #EDEFF8;
  --muted:    #B4BBDE;
  --dim:      #8288C6;

  --accent:   #6CB7DE;  /* основной голубой */
  --accent-2: #B2D7EE;  /* светлый голубой */
  --accent-3: #4A93C2;  /* тёмный голубой */

  --serif: 'Onest', -apple-system, sans-serif;
  --sans:  'Onest', -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  /* Фолбэк для браузеров без поддержки CSS-переменных (IE11 и старше):
     сначала обычные значения, затем переменные для современных браузеров */
  background: #0D0B32;
  color: #FFFFFF;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Decorative circuit pattern from brandbook — repeats subtly behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%236CB7DE' stroke-width='1.4' stroke-linecap='round' opacity='0.5'><circle cx='20' cy='20' r='2' fill='%236CB7DE'/><circle cx='120' cy='40' r='2' fill='%236CB7DE'/><circle cx='200' cy='80' r='2' fill='%236CB7DE'/><circle cx='40' cy='120' r='2' fill='%236CB7DE'/><circle cx='160' cy='160' r='2' fill='%236CB7DE'/><circle cx='80' cy='200' r='2' fill='%236CB7DE'/><circle cx='220' cy='220' r='2' fill='%236CB7DE'/><path d='M20 20 L80 20 L80 60'/><path d='M120 40 L120 100'/><path d='M200 80 L200 140 L160 160'/><path d='M40 120 L100 120'/><path d='M80 200 L80 160 L120 160'/><path d='M220 220 L180 220'/><circle cx='80' cy='60' r='3' fill='none'/><circle cx='100' cy='120' r='3' fill='none'/><circle cx='120' cy='160' r='3' fill='none'/></g></svg>");
  background-size: 240px 240px;
  opacity: 0.06;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- ВЕРХНЯЯ ПЛАШКА — федеральный телефон ----------
   Изменено 2026.08: до этого плашка была залита фирменным градиентом,
   номер набирался кеглем до 28px и с пульсирующей точкой. Первое, что видел
   посетитель, — телефон, а не предложение. Телефон остался на том же месте
   и по-прежнему кликабелен, но перестал конкурировать с первым экраном:
   тёмный фон в тон шапки, обычный кегль, номер прижат вправо. */
.phonebar {
  position: relative; z-index: 20;
  background: var(--bg-2);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.phonebar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7px var(--pad);
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}
.phone-big {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  transition: color 0.2s;
}
.phone-big:hover { color: var(--accent); }
.phone-big::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.phone-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  font-weight: 500;
}
@media (max-width: 640px) {
  .phonebar-inner { justify-content: center; gap: 10px; }
  .phone-big { font-size: 13px; }
  .phone-label { display: none; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(13,11,50,0.86);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 14px;
  letter-spacing: 0.12em;
  font-weight: 300;
}
.logo-mark {
  width: 42px; height: 42px;
  background: url('mark.png') center/contain no-repeat;
  flex-shrink: 0;
}
.logo-text {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text);
}
.logo-text strong {
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--accent); }
.nav-links a::after {
  content:"";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.current::after { width: 100%; }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--accent);
  color: #0a0a26;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .logo-text { font-size: 18px; }
}

/* ---------- CONTAINER ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 140px) var(--pad);
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-weight: 600;
}
.eyebrow::before {
  content:"";
  width: 28px; height: 1.5px;
  background: var(--accent);
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- ИЛЛЮСТРАЦИЯ ПЕРВОГО ЭКРАНА ----------
   Добавлено 2026.08. Скриншот интерфейса — первое, что подтверждает,
   что за словами стоит работающая система. Кадр светлый, поэтому вокруг него
   нужна оправа: тёмная подложка гасит переход от фона страницы к белому,
   акцентная линия сверху связывает снимок с остальной страницей. */
.hero-shot {
  margin: 0 0 64px;
  max-width: 1100px;
}
.hero-shot-frame {
  position: relative;
  padding: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
}
/* Акцентная линия по верхнему краю оправы */
.hero-shot-frame::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.hero-shot figcaption {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 760px;
}
@media (max-width: 760px) {
  .hero-shot { margin-bottom: 48px; }
  .hero-shot-frame { padding: 6px; border-radius: 10px; }
  .hero-shot figcaption { font-size: 13px; margin-top: 12px; }
}

/* ---------- МОБИЛЬНОЕ МЕНЮ ----------
   Добавлено 2026.08. До этого на ширинах до 920px список разделов просто
   скрывался и ничем не заменялся: с телефона нельзя было попасть ни в кейсы,
   ни в вопросы, ни в документацию — только через подвал. Кнопка и панель
   строятся скриптом из уже существующего <ul class="nav-links">, поэтому
   разделы достаточно править в одном месте — в разметке шапки. */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-burger:hover { border-color: var(--accent-3); }
.nav-burger span {
  position: relative;
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: background 0.2s;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.2s, top 0.2s;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top: 6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(13,11,50,0.98);
  padding: 8px var(--pad) 18px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.current { color: var(--accent); }
/* Показ кнопки меню задаётся здесь, после базового display: none.
   Раньше это правило стояло выше по файлу — в секции навигации — и его
   перебивало более позднее объявление, из-за чего кнопка не появлялась. */
@media (max-width: 920px) {
  .nav-burger { display: inline-flex; }
}
@media (min-width: 921px) {
  .nav-mobile { display: none !important; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  /* Отступы уменьшены 2026.08: на первом экране появился скриншот,
     и главная кнопка не должна уходить за нижний край окна на ноутбуке */
  padding-top: clamp(40px, 5.5vw, 72px);
  padding-bottom: clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  right: -200px; top: -150px;
  background: radial-gradient(circle, rgba(108,183,222,0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-mark-bg {
  position: absolute;
  width: clamp(400px, 50vw, 800px);
  height: clamp(400px, 50vw, 800px);
  right: -100px; top: 50%;
  transform: translateY(-50%);
  background: url('mark.png') center/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  animation: spin 90s linear infinite;
}
@keyframes spin {
  from { transform: translateY(-50%) rotate(0); }
  to { transform: translateY(-50%) rotate(360deg); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1100px;
}
h1.hero-title {
  /* Изменено 2026.08: верхняя граница снижена со 110px до 96px, нижняя —
     с 44px до 34px. Заголовок стал длиннее (в нём появились слова
     «ERP-система» и «управление предприятием»), и на ноутбуке 1366px
     и на телефоне 360px прежний кегль давал рваные переносы. */
  font-size: clamp(32px, 5.1vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 20px 0 26px;
  max-width: 34ch;
}
h1.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 900;
}
/* Контурное начертание. С 2026.08 в смысловой части H1 не используется:
   на тёмном фоне оно заметно проигрывало в читаемости, а первый экран должен
   прочитываться за секунду. Правило оставлено для декоративных надписей. */
.stroke {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
  font-weight: 800;
}

.hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a26;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(108,183,222,0.5);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  position: relative;
  z-index: 2;
}
.stat {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat-num em {
  font-style: normal;
  color: var(--accent);
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 36px 2px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ---------- TICKER ---------- */
.ticker {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: inline-flex;
  gap: 50px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 50px; }
.ticker-track span::after {
  content:"◆";
  color: var(--accent);
  font-size: 0.6em;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- OBJECTS ---------- */
.objects {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.objects-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) {
  .objects-wrap { grid-template-columns: 1fr; gap: 40px; }
}
.objects h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
}
.objects h2 em { font-style: normal; color: var(--accent); }
.objects-intro {
  color: var(--muted);
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
}
.object-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 560px) { .object-cards { grid-template-columns: 1fr; } }
.object-card {
  background: var(--bg-2);
  padding: 32px 28px;
  transition: background 0.3s;
  position: relative;
  min-height: 180px;
}
.object-card:hover { background: var(--bg-3); }
.object-card .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.12em;
  position: absolute;
  top: 18px; right: 24px;
}
.object-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.object-card h3::before {
  content:"";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent);
}
.object-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- STAGES ---------- */
.stages h2 {
  font-size: clamp(40px, 6vw, 78px);
  max-width: 920px;
  margin-bottom: 30px;
  font-weight: 700;
}
.stages h2 em { font-style: normal; color: var(--accent); }
.stages-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 70px;
}

.stage-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-2);
}
.stage {
  display: grid;
  grid-template-columns: 110px 1fr 2fr 60px;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-2);
  transition: all 0.3s;
  position: relative;
}
.stage:hover { padding-left: 18px; }
.stage::before {
  content:"";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.3s;
}
.stage:hover::before { width: 4px; }
.stage-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.1em;
  padding-top: 8px;
  font-weight: 500;
}
.stage-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stage-title em { font-style: normal; color: var(--accent); }
.stage-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.stage-arr {
  color: var(--dim);
  text-align: right;
  padding-top: 8px;
  font-size: 22px;
  transition: color 0.3s, transform 0.3s;
}
.stage:hover .stage-arr {
  color: var(--accent);
  transform: translateX(6px);
}
@media (max-width: 800px) {
  .stage { grid-template-columns: 70px 1fr; gap: 18px; }
  .stage-desc { grid-column: 2/3; }
  .stage-arr { display: none; }
}

/* ---------- MODULES ---------- */
.modules {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.modules::before {
  content: "MEGA";
  position: absolute;
  right: -10px; bottom: -90px;
  font-size: 380px;
  color: rgba(108,183,222,0.04);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.modules > * { position: relative; z-index: 2; }
.modules h2 {
  font-size: clamp(36px, 5vw, 68px);
  max-width: 820px;
  margin-bottom: 70px;
  font-weight: 700;
}
.modules h2 em { font-style: normal; color: var(--accent); }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .module-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .module-grid { grid-template-columns: 1fr; } }

.module {
  padding: 34px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  transition: background 0.3s;
  position: relative;
  min-height: 260px;
}
.module:hover { background: var(--bg); }
.module:hover .module-icon {
  color: var(--accent);
  border-color: var(--accent);
}
.module-icon {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: all 0.3s;
  font-weight: 600;
}
/* Корнер-индикатор: карточка ведёт в документацию */
.module::after {
  content: "↗";
  position: absolute;
  top: 30px; right: 26px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--dim);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
  pointer-events: none;
}
.module:hover::after {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}
.module h3 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.module h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.module h3 a:hover { color: var(--accent); }

/* Короткое описание подсистемы между h3 и списком */
.module-sub {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.module ul {
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
}
.module ul li {
  padding: 5px 0;
}
.module ul li::before {
  content: "→ ";
  color: var(--accent);
}
.module ul li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.module ul li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Интро-абзац над сеткой со ссылкой на полную документацию */
.modules-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 50px;
}
.modules-lead-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.modules-lead-link:hover { border-bottom-color: var(--accent); }
.modules-lead-link .arr {
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.2s;
}
.modules-lead-link:hover .arr { transform: translateX(3px); }

/* ---------- TOOLS ---------- */
.tools h2 {
  font-size: clamp(36px, 5vw, 68px);
  max-width: 900px;
  margin-bottom: 70px;
  font-weight: 700;
}
.tools h2 em { font-style: normal; color: var(--accent); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 800px) { .tools-grid { grid-template-columns: 1fr; } }

.tool {
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
  background: var(--bg-2);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tool:hover {
  transform: translateY(-4px);
  border-color: var(--accent-3);
  box-shadow: 0 20px 50px -25px rgba(108,183,222,0.4);
}
.tool-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 600;
}
.tool h3 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tool p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.tool-list {
  list-style: none;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tool-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  display: flex;
  gap: 10px;
}
.tool-list li::before {
  content:"▸";
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- INTEGRATIONS ---------- */
.integrations h2 {
  font-size: clamp(36px, 5vw, 68px);
  max-width: 920px;
  margin-bottom: 30px;
  font-weight: 700;
}
.integrations h2 em { font-style: normal; color: var(--accent); }
.integrations-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 60px;
}
.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 900px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .int-grid { grid-template-columns: 1fr; } }
.int-group {
  padding: 30px 0 0;
  border-top: 2px solid var(--accent-3);
  position: relative;
}
.int-group::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 36px; height: 2px;
  background: var(--accent);
}
.int-group-title {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 600;
}
.int-list {
  list-style: none;
}
.int-list li {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.int-list li:last-child { border-bottom: none; }
.int-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- SECURITY ---------- */
.security {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.security-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .security-wrap { grid-template-columns: 1fr; gap: 50px; }
}
.security h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
}
.security h2 em { font-style: normal; color: var(--accent); }
.security p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 22px;
}
.rls-code {
  font-family: var(--mono);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
.rls-code::before {
  content: "● ● ●";
  position: absolute;
  top: 12px; right: 16px;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.rls-code .kw { color: var(--accent); font-weight: 500; }
.rls-code .str { color: var(--accent-2); }
.rls-code .cm { color: var(--dim); }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta-inner {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(40px, 7vw, 90px);
  background:
    radial-gradient(ellipse at top right, rgba(108,183,222,0.12), transparent 50%),
    var(--bg-2);
  position: relative;
  overflow: hidden;
}
.cta-inner::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -100px; bottom: -100px;
  background: url('mark.png') center/contain no-repeat;
  opacity: 0.07;
}
.cta h2 {
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 26px;
  font-weight: 700;
}
.cta h2 em { font-style: normal; color: var(--accent); }
.cta-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-phone-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 32px;
  letter-spacing: 0.05em;
}

/* Two-column CTA with embedded form */
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}
.cta-left { min-width: 0; }
.cta-right { min-width: 0; }

/* Form */
.lead-form {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
}
.lead-form .form-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lead-form .form-title::before {
  content:"";
  width: 28px; height: 1.5px;
  background: var(--accent);
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 13px 16px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 22px;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent label {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  cursor: pointer;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}
.consent label a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(108,183,222,0.4);
}
.consent label a:hover { text-decoration-color: var(--accent); }
.btn-submit {
  width: 100%;
  padding: 15px 24px;
  background: var(--accent);
  color: #0a0a26;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.btn-submit:hover:not(:disabled) {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(108,183,222,0.5);
}
.btn-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-submit.loading {
  opacity: 0.7;
  cursor: wait;
}

/* Honeypot — спрятано от людей, но доступно ботам */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Сообщение об ошибке отправки формы */
.form-error {
  display: none;
  padding: 14px 16px;
  background: rgba(255, 91, 46, 0.08);
  border: 1px solid rgba(255, 91, 46, 0.35);
  border-radius: 10px;
  color: #ffb6a0;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
}
.form-error.shown { display: block; }
.form-success {
  display: none;
  padding: 24px;
  background: rgba(108,183,222,0.08);
  border: 1px solid var(--accent-3);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}
.form-success.shown { display: block; }
.form-success .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a26;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- COOKIE-ПАНЕЛЬ ----------
   Изменено 2026.08: раньше это была полоса во всю ширину экрана, до 820px,
   которая на телефоне занимала нижнюю треть первого экрана и накрывала
   кнопку «Показать систему в работе». Теперь — компактная карточка в левом
   нижнем углу, на мобильном прижата к низу и не перекрывает панель действий. */
.cookie-bar {
  position: fixed;
  left: 20px; bottom: 20px;
  width: min(380px, calc(100vw - 40px));
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  z-index: 100;
}
.cookie-bar.hidden { display: none; }
.cookie-bar p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.cookie-bar p a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(108,183,222,0.4); }
.cookie-bar p a:hover { text-decoration-color: var(--accent); }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: var(--accent);
  color: #0a0a26;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-btn:hover { background: var(--accent-2); }
/* Вторая кнопка. Появляется только в режиме, когда счётчик посещаемости
   ждёт согласия (см. MEGA_CONSENT_REQUIRED в разметке страницы); иначе
   скрывается скриптом, чтобы не обещать того, чего кнопка не делает. */
.cookie-btn-secondary {
  background: none;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-secondary:hover { color: var(--text); border-color: var(--dim); }
.cookie-btn-secondary[hidden] { display: none; }
@media (max-width: 640px) {
  /* bottom здесь намеренно не задаётся: на ширинах до 760px карточку
     поднимает над мобильной панелью действий отдельное правило выше */
  .cookie-bar { left: 12px; right: 12px; width: auto; }
}

/* ---------- ФОКУС С КЛАВИАТУРЫ ----------
   Добавлено 2026.08. Собственного стиля фокуса на сайте не было: у ссылок
   и кнопок оставалась браузерная обводка, а у полей формы она гасилась
   правилом outline: none. При навигации с клавиатуры было не видно,
   где находишься. :focus-visible срабатывает только при клавиатурном
   фокусе, поэтому у мыши ничего не меняется. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .cookie-btn:focus-visible, .nav-cta:focus-visible { outline-offset: 4px; }
/* Поля формы гасят обводку правилом .field input:focus — оно специфичнее
   общего, поэтому фокус с клавиатуры возвращается отдельно */
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--pad) 36px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  gap: 44px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1180px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.footer-brand .logo { margin-bottom: 22px; }
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-links a {
  color: var(--text);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--accent); }
.foot-links a .dot {
  width: 5px; height: 5px; background: var(--dim); border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}
.foot-links a:hover .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Реквизиты — две колонки без границ */
.req-table {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  gap: 10px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.req-table dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 2px;
  font-weight: 500;
}
.req-table dd {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
/* По умолчанию контент виден всегда — это страховка для старых браузеров
   и для случая, когда JavaScript отключён. Анимация появления добавляется
   только при наличии класса .js-anim на <html> (см. скрипт в <head>). */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-anim .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   ДОБАВЛЕНО 2026.07 — блоки против отказов + тарифы
   ========================================================================== */

/* ---------- HERO: отраслевые чипы «для кого» ---------- */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
  position: relative; z-index: 2;
  align-items: center;
}
.hero-chips a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.hero-chips a:hover { border-color: var(--accent); color: var(--accent); }
.hero-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--accent-3);
  border-radius: 999px;
  padding: 7px 16px;
  transition: all 0.2s;
  white-space: nowrap;
}
.hero-price-pill strong { font-size: 13px; font-weight: 600; color: var(--accent); }
.hero-price-pill:hover { background: rgba(108,183,222,0.08); border-style: solid; }

/* ---------- КОМУ ПОДХОДИТ ---------- */
.audience { background: var(--bg); border-bottom: 1px solid var(--line); }
.audience h2 { font-size: clamp(30px, 4.2vw, 54px); max-width: 900px; }
.audience h2 em { font-style: normal; color: var(--accent); font-weight: 900; }
.audience-intro {
  color: var(--muted);
  margin-top: 22px;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.75;
}
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
@media (max-width: 900px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-card {
  background: var(--bg-2);
  padding: 32px 28px 28px;
  display: block;
  position: relative;
  transition: background 0.25s;
}
.aud-card:hover { background: var(--bg-3); }
.aud-card .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.12em;
}
.aud-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}
.aud-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.aud-card .aud-pain {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px;
  color: var(--dim);
  line-height: 1.65;
}
.aud-card .aud-pain b { color: var(--accent); font-weight: 600; }
.aud-card::after {
  content: "\2197";
  position: absolute; top: 22px; right: 24px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  transform: translate(-4px, 4px);
}
.aud-card:hover::after { opacity: 1; transform: none; }

/* ---------- MEGA И 1С — позиционирование ---------- */
.vs1c { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vs1c h2 { font-size: clamp(30px, 4.2vw, 56px); max-width: 900px; }
.vs1c h2 em { font-style: normal; color: var(--accent); font-weight: 900; }
.vs1c-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 780px;
  margin-top: 24px;
}
.vs1c-table {
  margin-top: 52px;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.vs1c-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.vs1c-table th, .vs1c-table td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  vertical-align: top;
}
.vs1c-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-weight: 500;
  background: var(--bg-3);
}
.vs1c-table thead th.hl { color: var(--accent); }
.vs1c-table td:first-child { color: var(--muted); width: 26%; }
.vs1c-table td.hl { color: var(--text); background: rgba(108,183,222,0.04); }
.vs1c-table tr:last-child td { border-bottom: none; }
.vs1c-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.75;
  max-width: 780px;
}

/* ---------- ТАРИФЫ ---------- */
.pricing { background: var(--bg); position: relative; }
.pricing h2 { font-size: clamp(32px, 4.6vw, 60px); max-width: 900px; }
.pricing h2 em { font-style: normal; color: var(--accent); font-weight: 900; }
.pricing-lead {
  color: var(--muted); font-size: 17px; line-height: 1.75;
  max-width: 720px; margin-top: 24px;
}
.price-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

.price-main { background: var(--bg-3); padding: clamp(28px, 4vw, 48px); position: relative; }
.price-main::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.price-tag {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 18px 0 8px;
}
.price-num {
  font-size: clamp(46px, 6.6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.price-cur { font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--accent); }
.price-per {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1.6;
}
.price-includes { list-style: none; margin-top: 34px; display: grid; gap: 13px; }
.price-includes li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--muted); line-height: 1.65;
}
.price-includes li::before {
  content: "\25C6";
  color: var(--accent);
  font-size: 9px;
  line-height: 1.9;
  flex-shrink: 0;
}
.price-includes li b { color: var(--text); font-weight: 600; }

.price-side { background: var(--bg-2); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.price-side h3 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.price-side > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.discount-note {
  margin-top: 22px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  background: rgba(108,183,222,0.05);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.discount-note b { color: var(--accent); font-weight: 600; }

/* Калькулятор */
.calc { margin-top: 28px; padding-top: 26px; border-top: 1px dashed var(--line-2); }
.calc-label {
  font-family: var(--mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--dim); display: block; margin-bottom: 16px; font-weight: 500;
}
.calc-row { display: flex; align-items: center; gap: 12px; }
.calc-btn {
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}
.calc-btn:hover { border-color: var(--accent); color: var(--accent); }
.calc-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 11px 8px;
  -moz-appearance: textfield;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input:focus { outline: none; border-color: var(--accent); }
.calc-range { width: 100%; margin-top: 18px; accent-color: var(--accent); }
.calc-out {
  margin-top: 22px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.calc-sum {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.calc-sum-per {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim);
}
.calc-hint {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--dim);
  min-height: 42px;
}
.calc-hint.active { color: var(--accent); }
.price-actions { margin-top: auto; padding-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.price-extra {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) { .price-extra { grid-template-columns: 1fr; } }
.price-extra > div { background: var(--bg-2); padding: 28px 26px; }
.price-extra h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.price-extra p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.price-extra .tagline {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq h2 { font-size: clamp(30px, 4.2vw, 56px); max-width: 860px; }
.faq h2 em { font-style: normal; color: var(--accent); font-weight: 900; }
.faq-list { margin-top: 50px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1.5;
}
.faq-q:hover { color: var(--accent); }
.faq-q .sign {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  color: var(--accent);
  transition: transform 0.3s, border-color 0.2s;
  margin-top: 2px;
}
.faq-item.open .faq-q .sign { transform: rotate(45deg); border-color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding: 0 60px 28px 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 880px;
}
.faq-a-inner p + p { margin-top: 14px; }
.faq-a-inner a { color: var(--accent); border-bottom: 1px solid rgba(108,183,222,0.35); }
.faq-a-inner a:hover { border-bottom-color: var(--accent); }
@media (max-width: 560px) { .faq-a-inner { padding-right: 10px; } }

/* ---------- КУДА ДАЛЬШЕ ---------- */
.nextsteps { background: var(--bg); border-top: 1px solid var(--line); }
.next-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}
@media (max-width: 900px) { .next-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .next-grid { grid-template-columns: 1fr; } }
.next-card {
  background: var(--bg-2);
  padding: 30px 26px;
  display: block;
  transition: background 0.25s;
  position: relative;
}
.next-card:hover { background: var(--bg-3); }
.next-card .tagline {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 16px;
}
.next-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.next-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.next-card .go {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.next-card .go span { transition: transform 0.2s; }
.next-card:hover .go span { transform: translateX(4px); }

/* Якоря не должны прятаться под липкую навигацию */
section[id] { scroll-margin-top: 88px; }

/* ---------- МОБИЛЬНАЯ ПАНЕЛЬ ДЕЙСТВИЙ ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 1px;
  background: var(--line-2);
  border-top: 1px solid var(--line-2);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.mobile-cta.shown { transform: none; }
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 15px 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text);
}
.mobile-cta a.primary { background: var(--accent); color: #0a0a26; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 52px; }
  .cookie-bar { bottom: 72px; }
}


/* --- Стили внутренних страниц (тарифы, вопросы) --- */
.page-head {
  position: relative;
  padding: clamp(56px, 8vw, 100px) var(--pad) clamp(40px, 6vw, 70px);
  max-width: var(--max);
  margin: 0 auto;
  z-index: 2;
}
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--dim); margin: 0 8px; }

h1.page-title {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 28px;
  max-width: 15ch;
}
h1.page-title em { font-style: normal; color: var(--accent); font-weight: 900; }

.page-lead {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}
.page-lead strong { color: var(--text); font-weight: 600; }

/* Что входит / что отдельно */
.incl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
@media (max-width: 820px) { .incl-grid { grid-template-columns: 1fr; } }
.incl-col { background: var(--bg-2); padding: clamp(26px, 3.4vw, 40px); }
.incl-col.yes { background: var(--bg-3); }
.incl-col h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.incl-col > p { color: var(--dim); font-size: 13px; line-height: 1.6; margin-bottom: 24px; }
.incl-col ul { list-style: none; display: grid; gap: 14px; }
.incl-col li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.7; color: var(--muted);
}
.incl-col li b { color: var(--text); font-weight: 600; }
.incl-col.yes li::before { content: "\2713"; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.incl-col.no  li::before { content: "\2022"; color: var(--dim); flex-shrink: 0; }

/* Порядок работы */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-row { grid-template-columns: 1fr; } }
.step-box { background: var(--bg-2); padding: 30px 26px; }
.step-box .n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--accent); display: block; margin-bottom: 16px;
}
.step-box h4 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step-box p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.plain-section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--pad); position: relative; z-index: 2; }
.plain-section h2 { font-size: clamp(28px, 3.8vw, 48px); max-width: 900px; }
.plain-section h2 em { font-style: normal; color: var(--accent); font-weight: 900; }
.plain-section .lead { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 760px; margin-top: 22px; }

.faq-groups { margin-top: 10px; }
.faq-group-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  margin: 56px 0 0;
}


/* ==========================================================================
   ИСПРАВЛЕНО 2026.07 — горизонтальная прокрутка на мобильных
   --------------------------------------------------------------------------
   Раньше `overflow-x: hidden` стоял только на <body>. В Safari на iOS этого
   недостаточно: страница всё равно уезжает вбок при боковом свайпе.
   `overflow-x: clip` ставится и на <html>, и на <body>. В отличие от `hidden`
   он не создаёт блок прокрутки, поэтому липкая навигация продолжает работать.
   Правило `hidden` выше оставлено как запасное для старых браузеров.
   ========================================================================== */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
html, body { max-width: 100%; }

/* Ничто не должно быть шире своего контейнера */
img, svg, video, iframe, table, pre, canvas { max-width: 100%; }

/* Длинные слова и адреса переносятся, а не растягивают блок */
p, li, h1, h2, h3, h4, td, th, dd, dt, label, .faq-q, .btn, .case-summary {
  overflow-wrap: break-word;
}

/* Элементы сетки по умолчанию не сжимаются уже своего содержимого
   (min-width: auto) — из-за этого колонка может раздуть всю сетку */
.price-grid > *, .incl-grid > *, .aud-grid > *, .next-grid > *,
.steps-row > *, .price-extra > *, .footer-top > *, .object-cards > *,
.module-grid > *, .tools-grid > *, .int-grid > *, .cta-grid > *,
.hero-stats > *, .stages-grid > * { min-width: 0; }

/* Таблица сравнения с 1С прокручивается внутри себя, а не тянет страницу */
.vs1c-table { max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 520px) {
  .vs1c-table table { min-width: 520px; }
  .vs1c-table th, .vs1c-table td { padding: 14px 16px; font-size: 13px; }
}

/* ---------- ПОЧЕМУ МЫ ---------- */
.whyus { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.whyus h2 { max-width: 900px; }
.whyus-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 840px;
  margin-top: 20px;
}
.whyus .aud-card::after { content: none; }
.whyus .aud-card { cursor: default; }
.whyus .aud-card:hover { background: var(--bg-2); }
.whyus-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Размер бизнеса (в блоке «Кому подходит») ---------- */
.aud-size {
  margin-top: 40px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  background: rgba(108,183,222,0.05);
  padding: 26px 28px;
}
.aud-size h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.aud-size p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.aud-size p + p { margin-top: 12px; }

/* Плашка с ценой в первом экране: переносится, а не вылезает за край */
.hero-price-pill { white-space: normal; max-width: 100%; text-align: center; }
.hero-chips a { max-width: 100%; }
@media (max-width: 420px) {
  .hero-price-pill { width: 100%; justify-content: center; }
}

