/* ============================================================
   Умсайт — лендинг. Светлая деловая тема, синий акцент.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --text: #0d1526;
  --muted: #5b6474;
  --line: #e5e9f2;
  --accent: #2f6bff;
  --accent-strong: #1f56e6;
  --accent-soft: #eef3ff;
  --accent-line: #d4e2ff;
  --green: #12a150;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .05);
  --shadow-md: 0 12px 32px rgba(13, 21, 38, .08);
  --shadow-lg: 0 30px 70px rgba(13, 21, 38, .14);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; }

::selection { background: rgba(47, 107, 255, .18); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

section[id],
#top {
  scroll-margin-top: 84px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, .28);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(47, 107, 255, .34);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #fbfcff; border-color: #cfd8e8; transform: translateY(-1px); }

.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent);
}

.logo-svg { width: 150px; height: auto; display: block; }
.logo-normal, .logo-lit { transition: opacity .22s ease; }
.logo-lit { opacity: 0; }
.logo:hover .logo-lit,
.logo:focus-visible .logo-lit,
.logo.is-lit .logo-lit { opacity: 1; }
.logo:hover .logo-normal,
.logo:focus-visible .logo-normal,
.logo.is-lit .logo-normal { opacity: 0; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4a80ff, #1f56e6);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(47, 107, 255, .3);
}

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; color: var(--accent); font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 480px at 84% -12%, rgba(47, 107, 255, .13), transparent 62%),
    radial-gradient(700px 420px at 8% 0%, rgba(47, 107, 255, .06), transparent 55%),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}
.accent { color: var(--accent); }

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-tagline::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 161, 80, .12);
}

.lead {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.trust .icon { width: 16px; height: 16px; color: var(--green); stroke-width: 2.6; }

/* ---------- Чат ---------- */

.hero-chat { position: relative; }
.hero-chat::before {
  content: "";
  position: absolute;
  inset: 8% -6% auto -6%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(47, 107, 255, .16), transparent);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}

.chat-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 520px;
  max-width: 460px;
  margin-left: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#fff, #fbfcff);
}

.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
}
.avatar svg { width: 42px; height: 42px; display: block; }

.chat-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-who strong { font-size: 15px; font-weight: 700; }
.status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 161, 80, .14);
}

.chat-tag {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  scroll-behavior: smooth;
  background: #fff;
}
.chat-log::before { content: ""; margin-top: auto; }
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: #dde3ee; border-radius: 3px; }

.msg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  animation: msgIn .25s ease;
}
.msg.bot {
  align-self: flex-start;
  background: #f1f4fa;
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.msg.typing { display: flex; align-items: center; gap: 4px; padding: 14px; }
.msg.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa6bb;
  animation: blink 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes blink {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
}
.chip {
  padding: 8px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.chip:hover { background: #e2ecff; border-color: #bcd2ff; }
.chip:disabled { opacity: .55; cursor: default; }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.chat-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
.chat-send {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.chat-send:hover { background: var(--accent-strong); }
.chat-send:active { transform: scale(.96); }

/* ---------- Цифры ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 0;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- Секции ---------- */

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}
.sub { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Карточки ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #dbe3f0;
  box-shadow: var(--shadow-md);
}
.card h3 { margin: 14px 0 8px; font-size: 17px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-box .icon { width: 22px; height: 22px; }

/* ---------- Сплит ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.5;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .12);
}

.callout {
  padding: 32px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: linear-gradient(160deg, #fff, #f2f6ff);
  box-shadow: var(--shadow-md);
}
.callout h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.callout p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Услуги ---------- */

.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service { grid-column: span 2; display: flex; flex-direction: column; }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service p { margin-bottom: 18px; }
.service-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

/* ---------- Демо ---------- */

.checks {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checks .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 2.6; }

.mock-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.mock-card .chat-head { background: #fff; }
.mock-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(#fbfcff, #fff);
}
.mock-chips { padding: 0; margin-top: 4px; }
.mock-chips .chip { cursor: default; }

/* ---------- Этапы ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.step {
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(47, 107, 255, .25);
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.step-time {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Интеграции ---------- */

.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.int-group {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.int-group h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Гарантии ---------- */

.guarantee .icon { width: 24px; height: 24px; color: var(--accent); }

/* ---------- Цены ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 24px 60px rgba(47, 107, 255, .16);
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan h3 { margin: 0 0 6px; font-size: 19px; }
.plan-desc { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-term { margin: 4px 0 18px; font-size: 13.5px; color: var(--muted); }
.plan-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.plan-list .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--green); stroke-width: 2.6; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .2s ease, opacity .2s ease;
}
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
details[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq details p { margin: 0 0 20px; max-width: 90%; color: var(--muted); line-height: 1.65; }

/* ---------- Заявка ---------- */

.section-lead { background: linear-gradient(180deg, #fff, #f6f8fc); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.form-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
.field.invalid input {
  border-color: #e5484d;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}
.field-full { grid-column: 1 / -1; }
.form-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

.form-success { padding: 32px 8px; text-align: center; }
.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 161, 80, .12);
  color: var(--green);
}
.success-icon .icon { width: 28px; height: 28px; stroke-width: 2.6; }
.form-success h3 { margin: 0 0 8px; font-size: 22px; }
.form-success p { margin: 0; color: var(--muted); }

/* ---------- Футер ---------- */

.footer { padding: 56px 0 24px; background: #0b1324; color: #c7cfdd; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.logo-light { color: #fff; --logo-site: #fff; }
.footer-brand p { max-width: 300px; margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: #93a0b5; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col a { font-size: 14.5px; color: #aab6c8; text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: #7c8aa0;
}

/* ---------- Плавающий чат ---------- */

.widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.widget-panel {
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(560px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.widget.open .widget-panel { opacity: 1; transform: none; pointer-events: auto; }

.widget-head { padding: 12px 14px; }
.widget-log { padding: 14px; }

.icon-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }

.widget-btn {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a80ff, #1f56e6);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(47, 107, 255, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.widget-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 38px rgba(47, 107, 255, .46); }
.widget.widget-hidden .widget-btn { opacity: 0; transform: scale(.8); pointer-events: none; }
.widget-btn .icon { width: 26px; height: 26px; }
.widget-btn .icon-close { display: none; }
.widget.open .widget-btn .icon-open { display: none; }
.widget.open .widget-btn .icon-close { display: block; }

/* ---------- Анимация появления ---------- */

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .msg { animation: none; }
  .msg.typing span { animation: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { gap: 18px; }
}

@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .chat-card { height: 480px; max-width: none; margin: 0; }
  .split, .lead-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: auto; }
  .service:last-child { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .plan-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; gap: 10px; }
  .logo-svg { width: 124px; }
  .header-actions .btn-sm { padding: 9px 12px; font-size: 13px; }
  .mobile-nav { top: 64px; }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-tagline::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
}

.badge { font-size: 12px; }
  .lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-tagline { font-size: 11px; letter-spacing: .08em; }
  .trust { gap: 12px 18px; }
  .trust li { font-size: 13px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0; }
  .stat strong { font-size: 18px; }
  .grid-4, .grid-3, .services-grid, .int-grid, .steps, .form-grid, .plans { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .section-head { margin-bottom: 28px; }
  .chat-card { height: 460px; }
  .callout { padding: 24px; }
  .plan { padding: 24px; }
  .faq details p { max-width: 100%; }
  .footer { padding: 44px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .widget { right: 12px; bottom: 12px; }
  .widget-panel { width: calc(100vw - 24px); height: min(620px, calc(100vh - 100px)); }
}
