/* AlBrother — mobile-first */
:root {
  --bg: #fafafa;
  --bg-card: #f4f4f5;
  --bg-card-soft: #e4e4e7;
  --text: #0a0a0a;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-glow: rgba(37, 99, 235, 0.28);
  --danger: #dc2626;
  --success: #16a34a;
  --bitrix: #1d4ed8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --header-h: 72px;
  --container: min(1200px, 100% - 2rem);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(255, 255, 255, 0.98);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition),
    visibility var(--transition);
}

.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.65rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: #0a0a0a;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.btn-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Ccircle fill='%233b82f6' fill-opacity='0.08' cx='80' cy='120' r='2'/%3E%3Ccircle fill='%233b82f6' fill-opacity='0.12' cx='200' cy='60' r='1.5'/%3E%3Ccircle fill='%233b82f6' fill-opacity='0.06' cx='320' cy='200' r='2'/%3E%3Cpath stroke='%233b82f6' stroke-opacity='0.12' stroke-width='0.5' d='M80 120 L200 60 L320 200 L200 280 Z'/%3E%3C/svg%3E");
  background-size: 600px;
  opacity: 0.9;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease both;
}

.hero__title {
  font-size: clamp(2rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero__lead {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  max-width: 36rem;
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 40px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 56px var(--accent-glow);
}

.hero__link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.hero__link:hover {
  color: var(--text);
}

.marquee-wrap {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: fadeUp 0.8s 0.4s ease both;
}

.marquee-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.marquee {
  display: flex;
  gap: 2rem;
  width: max-content;
  /* Две одинаковые половины в разметке: от -50% к 0 = движение слева направо по кругу без рывка */
  animation: marquee-loop 38s linear infinite;
  will-change: transform;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

@keyframes marquee-loop {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Section common —— */
.section {
  padding: 4rem 1rem;
}

.section--tight {
  padding-top: 2rem;
}

.section__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section__title .accent-danger {
  color: var(--danger);
}

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

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Problem grid —— */
.problem-grid {
  display: grid;
  gap: 1.25rem;
}

.problem-card {
  background: linear-gradient(145deg, #fafafa, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 77, 0.25);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.problem-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 77, 0.12);
  border-radius: var(--radius-sm);
  color: var(--danger);
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.problem-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Comparison slider —— */
.compare-section .section__subtitle {
  margin-bottom: 2rem;
}

.compare {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-height: 420px;
  background: #f4f4f5;
}

.compare__layer {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.compare__before {
  z-index: 1;
  background: linear-gradient(135deg, #fff5f5 0%, #fafafa 60%);
}

.compare__after {
  z-index: 2;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%);
  clip-path: inset(0 0 0 var(--clip, 50%));
  transition: clip-path 0.05s linear;
}

.compare__badges {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.badge--red {
  background: rgba(255, 77, 77, 0.2);
  color: #ff6b6b;
}

.badge--blue {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent);
}

.compare__cards {
  display: grid;
  gap: 0.75rem;
  flex: 1;
}

.compare-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.compare-card--wide {
  grid-column: 1 / -1;
}

.compare-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.compare__before .compare-card__icon {
  background: rgba(255, 77, 77, 0.15);
  color: var(--danger);
}

.compare__after .compare-card__icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.compare-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.compare-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.compare__after .compare-grid-top {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .compare__after .compare-grid-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare-card--green .compare-card__icon {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.compare-card--blue .compare-card__icon {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent);
}

.compare-card--purple .compare-card__icon {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.agent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.agent-bar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, var(--accent));
}

.agent-bar__status {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--success);
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 4px;
  margin-left: -2px;
  background: #1e293b;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
  z-index: 5;
  pointer-events: none;
}

.compare__thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  color: #0a0a0a;
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: -0.05em;
}

.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}

/* —— Steps: от хаоса к системе —— */
.steps-section__title {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.steps-section__title-main {
  display: block;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.steps-section__title-suffix {
  display: block;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #6b6b6b;
}

.steps-track {
  position: relative;
}

.steps-track__line {
  display: none;
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.step-card {
  background: linear-gradient(160deg, #f8fafc, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.step-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.step-card__icon--blue {
  color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.step-card__icon--purple {
  color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.12);
}

.step-card__icon--pink {
  color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.12);
}

.step-card__icon--green {
  color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.12);
}

.step-card__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.step-card__heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.step-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* —— Арсенал (3 карточки услуг) —— */
.arsenal-section {
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.arsenal-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .arsenal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.arsenal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 55%, #f4f4f5 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.arsenal-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.08);
}

.arsenal-card__icon-wrap {
  margin-bottom: 1.1rem;
}

.arsenal-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(
    circle at 30% 25%,
    #60a5fa,
    var(--accent) 45%,
    #1d4ed8
  );
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

.arsenal-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.arsenal-card__text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex-grow: 0;
}

.arsenal-card__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex-grow: 1;
}

.arsenal-card__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.arsenal-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1.45;
}

.arsenal-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: transparent;
  transition: border-color var(--transition), color var(--transition),
    background var(--transition), box-shadow var(--transition);
}

.arsenal-card__more:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

/* —— Цифровое бессмертие + bento + ROI —— */
.immortality-section {
  padding-top: clamp(2rem, 6vw, 3.5rem);
  padding-bottom: clamp(1rem, 4vw, 2rem);
}

.immortality-section__inner {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.immortality-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-pill);
}

.immortality-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.immortality-lead {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.immortality-lead strong {
  color: var(--text);
  font-weight: 700;
}

.bento-features-section {
  padding-top: clamp(1rem, 4vw, 2rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.bento-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .bento-card--wide {
    grid-column: span 8;
  }

  .bento-card--side {
    grid-column: span 4;
  }

  .bento-card--half {
    grid-column: span 6;
  }
}

.bento-card {
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(165deg, #ffffff 0%, #f4f4f5 55%, #fafafa 100%);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.bento-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
}

.bento-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.bento-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border-width: 1px;
  border-style: solid;
}

.bento-icon--robot {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.bento-icon--bolt {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.06);
}

.bento-icon--shield {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.bento-icon--db {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(168, 85, 247, 0.08);
}

.bento-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.bento-card__title .amo {
  color: var(--accent);
}

.bento-card__title .bx {
  color: #5b9fd8;
}

.bento-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.bento-card__text strong {
  color: var(--text);
  font-weight: 700;
}

.bento-uptime {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bento-uptime__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.bento-uptime__fill {
  width: 99.9%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a855f7, #6366f1, #3b82f6);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.45);
}

.bento-uptime__label {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #60a5fa;
  white-space: nowrap;
}

.roi-section {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.roi-section__title {
  text-align: center;
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.roi-section__burn {
  color: var(--danger);
}

.roi-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(160deg, #ffffff 0%, #f4f4f5 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.06);
}

.roi-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .roi-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.roi-field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.roi-field__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.roi-field__value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.roi-field + .roi-field {
  margin-top: 1.5rem;
}

.roi-range {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.roi-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  cursor: pointer;
}

.roi-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  cursor: pointer;
}

.roi-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roi-panel {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid transparent;
}

.roi-panel--loss {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.45), rgba(30, 10, 10, 0.9));
  border-color: rgba(248, 113, 113, 0.25);
}

.roi-panel--gain {
  background: linear-gradient(145deg, rgba(20, 83, 45, 0.45), rgba(8, 20, 12, 0.92));
  border-color: rgba(74, 222, 128, 0.22);
}

.roi-panel__label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.roi-panel__sum {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.roi-panel--loss .roi-panel__sum {
  color: #fecaca;
}

.roi-panel--gain .roi-panel__sum {
  color: #86efac;
}

.roi-panel__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.roi-cta {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin: 2rem auto 0;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.roi-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.3);
}

.roi-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— Numbers: цифры не лгут —— */
.numbers-section__title {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.numbers-section__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  font-size: 1rem;
  line-height: 1.65;
}

.numbers-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.numbers-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(165deg, #fafafa, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.numbers-item:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.numbers-item__value {
  display: block;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #3f3f46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.numbers-item__label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 14rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-track__line {
    display: block;
    position: absolute;
    left: 3%;
    right: 3%;
    top: 2.125rem;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .numbers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* —— Niches —— */
.niches-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.niche-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.niche-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.niche-tab:hover {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.15);
}

.niche-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

.niche-tab__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  transition: inherit;
}

.niche-tab.is-active .niche-tab__icon {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

.niche-panel {
  background: linear-gradient(160deg, #ffffff, #f4f4f5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  opacity: 0;
  animation: panelIn 0.45s ease forwards;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.niche-panel h3 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.niche-panel > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.metrics {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.metric__label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--success);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.metric strong {
  font-size: 0.95rem;
}

.niche-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition), color var(--transition);
}

.niche-demo-link:hover {
  gap: 0.55rem;
  color: #60a5fa;
}

/* —— DNA / integrations —— */
.dna-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.dna-item {
  text-align: center;
  transition: transform var(--transition);
}

.dna-item:hover {
  transform: translateY(-4px);
}

.dna-item__circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.dna-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: linear-gradient(155deg, #f8fafc, #e4e4e7);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
}

.integration-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.integration-card h3 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.integration-card h3 .amo {
  color: var(--accent);
}

.integration-card h3 .bx {
  color: #5b9fd8;
}

.integration-card > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.check-list {
  margin: 0 0 1.5rem;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.check-list li:last-child {
  margin-bottom: 0;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  margin-top: 0.15rem;
}

.check-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.check-list span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.crm-mockup {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.8rem;
}

.crm-mockup__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.crm-mockup__deal {
  font-weight: 700;
}

.crm-mockup__source {
  color: var(--success);
  font-size: 0.75rem;
}

.crm-bubble {
  background: rgba(59, 130, 246, 0.15);
  border-radius: 12px 12px 12px 4px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.crm-bubble--ai {
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.crm-status {
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.crm-status__row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.crm-status__row b {
  color: var(--text);
}

.status-ok {
  color: var(--success);
  font-weight: 700;
}

/* —— Voice —— */
.voice-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

.voice-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.voice-split h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.voice-split__lead {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.voice-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.voice-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.voice-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-feature strong {
  display: block;
  margin-bottom: 0.25rem;
}

.voice-feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stats-card {
  background: linear-gradient(160deg, #fafafa, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.stats-card h3 {
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-cell {
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color var(--transition);
}

.stat-cell:hover {
  border-color: rgba(0, 0, 0, 0.14);
}

.stat-cell__icon {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.stat-cell .big {
  font-size: 1.35rem;
  font-weight: 800;
  display: block;
}

.stat-cell .tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0.25rem 0 0.5rem;
}

.stat-cell .tag--y {
  color: #facc15;
}

.stat-cell .tag--g {
  color: var(--success);
}

.stat-cell .tag--b {
  color: var(--accent);
}

.stat-cell .tag--p {
  color: #c084fc;
}

.stat-cell p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn-voice {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}

.btn-voice:hover {
  background: rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}

/* —— Call examples (voice section) —— */
#voice .container + .container {
  margin-top: 3.5rem;
}

.call-examples {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.call-examples__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.call-examples__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
  color: var(--text);
}

.call-examples__title em {
  font-style: italic;
  font-weight: 800;
  color: var(--text-dim);
}

.call-examples-grid {
  display: grid;
  gap: 1.25rem;
}

.call-card {
  background: linear-gradient(165deg, #fafafa, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.15rem;
  transition: border-color var(--transition), transform var(--transition);
}

.call-card:hover {
  border-color: rgba(59, 130, 246, 0.22);
  transform: translateY(-2px);
}

.call-card__top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.call-card__mic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.call-card__intro h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.call-card__intro p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.call-player {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-pill);
}

.call-player audio {
  display: none;
}

.call-player__play {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), filter var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.call-player__play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.call-player.is-playing .call-player__play::before {
  width: 12px;
  height: 14px;
  border: none !important;
  margin-left: 0;
  background: linear-gradient(
    90deg,
    #fff 0 35%,
    transparent 35% 65%,
    #fff 65% 100%
  );
}

.call-player__play:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.call-player__wave {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 32px;
  padding: 0 0.25rem;
}

.call-player__bar {
  flex: 1;
  max-width: 6px;
  min-height: 6px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
  align-self: center;
  transition: background var(--transition), transform 0.15s ease;
}

.call-player.is-playing .call-player__bar {
  animation: call-wave 0.85s ease-in-out infinite;
}

@keyframes call-wave {
  0%,
  100% {
    transform: scaleY(0.45);
    background: rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scaleY(1);
    background: rgba(37, 99, 235, 0.45);
  }
}

.call-player__time {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  min-width: 5.5rem;
  text-align: right;
}

.call-examples__note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 2rem 0 0;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .call-examples-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* —— Results strip —— */
.results-strip {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.result-item {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.result-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.result-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Articles / Knowledge base —— */
.kb-hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  max-width: 44rem;
  margin: 0 auto;
}

.kb-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.kb-hero__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.kb-hero__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.articles-more {
  text-align: center;
  margin-top: 2.5rem;
}

.articles-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  transition: gap var(--transition), color var(--transition);
}

.articles-more a:hover {
  gap: 0.55rem;
  color: #60a5fa;
}

.articles-grid {
  display: grid;
  gap: 1.25rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.article-card__media {
  position: relative;
  overflow: hidden;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #e4e4e7;
}

.article-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.article-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-card__meta svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.article-card h2,
.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.article-card__excerpt {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.article-card__link {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition), color var(--transition);
}

.article-card__link:hover {
  gap: 0.5rem;
  color: #60a5fa;
}

.article-card h2 a,
.article-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--accent);
}

/* —— Article single —— */
body.article-page .site-header {
  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(255, 255, 255, 0.95) 45%,
    #fafafa 100%
  );
  backdrop-filter: blur(14px);
}

.article-single {
  padding: 2rem 1rem 4rem;
}

.article-single__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.article-single__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  transition: color var(--transition), gap var(--transition);
}

.article-single__back:hover {
  color: var(--accent);
  gap: 0.5rem;
}

.article-single__hero {
  margin: 0 0 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f4f4f5;
}

.article-single__hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-single__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-single__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.article-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3f3f46;
}

.article-prose > * + * {
  margin-top: 1.25rem;
}

.article-prose__lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #27272a;
  margin: 0 0 1.5rem;
}

.article-prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.02em;
}

.article-prose p {
  margin: 0;
}

.article-prose ul {
  margin: 0.5rem 0 1.75rem;
  padding-left: 1.35rem;
  list-style-type: disc;
}

.article-prose li {
  margin-bottom: 0.85rem;
  padding-left: 0.15rem;
}

.article-prose li::marker {
  color: #0a0a0a;
}

.article-prose li strong {
  color: var(--text);
  font-weight: 700;
}

.article-prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: #52525b;
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.08),
    transparent 70%
  );
  border-radius: 0 8px 8px 0;
}

.article-prose blockquote p {
  margin: 0;
}

.article-prose__outro {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.article-prose__outro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose__outro a:hover {
  color: #93c5fd;
}

/* —— AI-консультант (Markdown-стратегия) —— */
.ai-consultant {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.ai-consultant-card {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff, #f4f4f5);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ai-consultant-card__intro {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.ai-consultant-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.ai-consultant-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.ai-consultant-card__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 42rem;
}

.ai-consultant-form__row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ai-consultant-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-consultant-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.ai-consultant-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ai-consultant-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ai-consultant-field {
  margin-bottom: 0;
}

.btn-ai-strategy {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-ai-strategy:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.45);
}

.btn-ai-strategy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ai-consultant-error {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ai-strategy-output-wrap {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ai-strategy-output__heading {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ai-strategy-md h1 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

.ai-strategy-md h1:first-child {
  margin-top: 0;
}

.ai-strategy-md h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.65rem;
}

.ai-strategy-md ol {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.35rem;
  list-style-type: decimal;
}

.ai-strategy-md ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.2rem;
}

.ai-strategy-md ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.ai-strategy-md hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ai-strategy-md strong {
  color: var(--text);
  font-weight: 700;
}

.ai-strategy-md a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-strategy-md code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: #27272a;
}

.ai-strategy-md pre {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  overflow-x: auto;
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.ai-strategy-md pre code {
  padding: 0;
  background: none;
  font-size: 0.88rem;
}

.ai-consultant-card__accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #1d4ed8, var(--accent));
  opacity: 0.85;
}

/* —— FAQ —— */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--transition);
}

.faq-item__btn:hover {
  color: var(--accent);
}

.faq-item__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.faq-item.is-open .faq-item__toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__answer {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.is-open {
  border-bottom-color: transparent;
}

.faq-item.is-open .faq-item__wrap {
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
  background: rgba(59, 130, 246, 0.04);
}

.faq-item .faq-item__wrap {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

/* —— CTA final —— */
.cta-final {
  text-align: center;
  padding: 5rem 1rem;
}

.cta-final h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cta-final > p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.cta-final .note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* —— Contact —— */
.contact-section {
  padding-bottom: 5rem;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 560px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: #0a0a0a;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.contact-form__feedback {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-dim, rgba(0, 0, 0, 0.55));
}

.form-alt {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

.form-alt a {
  color: var(--accent);
  text-decoration: underline;
}

.articles-feed-error {
  text-align: center;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto;
  padding: 1rem 0;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 1rem 6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.site-footer small {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* —— Chat widget (dock) —— */
.chat-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 280;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: calc(100vw - 2rem);
}

.chat-panel {
  width: min(100vw - 2rem, 380px);
  max-height: min(640px, calc(100vh - 7.5rem));
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity var(--transition), visibility var(--transition),
    transform var(--transition);
}

.chat-dock.is-open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.chat-flyout {
  width: min(100vw - 2rem, 380px);
  position: absolute;
  right: 0;
  bottom: 72px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity var(--transition), visibility var(--transition),
    transform var(--transition);
}

.chat-dock.is-menu-open .chat-flyout {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-flyout__sheet {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  padding: 1rem;
}

.chat-flyout__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.chat-flyout__headline {
  text-align: left;
}

.chat-flyout__headline strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.chat-flyout__availability {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chat-flyout__question {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.chat-flyout__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.chat-flyout__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.chat-flyout__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.chat-flyout__option:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.chat-flyout__badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-flyout__badge--site {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.chat-flyout__badge--telegram {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.chat-flyout__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.chat-flyout__text strong {
  font-size: 1rem;
  line-height: 1.2;
}

.chat-flyout__text span {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.chat-flyout__arrow {
  font-size: 1.3rem;
  color: var(--text-dim);
  line-height: 1;
  flex-shrink: 0;
}

.chat-flyout__note {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.chat-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.chat-panel__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel__brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.chat-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--success);
  margin-top: 0.15rem;
}

.chat-panel__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.chat-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.chat-panel__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 300px;
  max-height: 420px;
}

.chat-msg {
  max-width: 92%;
  padding: 0.85rem 1rem;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.chat-msg--bot {
  align-self: flex-start;
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.chat-msg--bot strong {
  font-weight: 700;
  color: var(--text);
}

/* Markdown в ответе чат-бота (marked + DOMPurify) */
.chat-msg__body {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-msg__body > *:first-child {
  margin-top: 0;
}

.chat-msg__body > *:last-child {
  margin-bottom: 0;
}

.chat-msg__body p {
  margin: 0.4em 0;
}

.chat-msg__body h1,
.chat-msg__body h2,
.chat-msg__body h3,
.chat-msg__body h4,
.chat-msg__body h5,
.chat-msg__body h6 {
  margin: 0.65em 0 0.35em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.chat-msg__body h1 {
  font-size: 1.05rem;
}

.chat-msg__body h2 {
  font-size: 1rem;
}

.chat-msg__body h3,
.chat-msg__body h4,
.chat-msg__body h5,
.chat-msg__body h6 {
  font-size: 0.95rem;
}

.chat-msg__body strong,
.chat-msg__body b {
  font-weight: 700;
  color: var(--text);
}

.chat-msg__body em,
.chat-msg__body i {
  font-style: italic;
}

.chat-msg__body ul,
.chat-msg__body ol {
  margin: 0.4em 0;
  padding-left: 1.35em;
}

.chat-msg__body li {
  margin: 0.2em 0;
}

.chat-msg__body blockquote {
  margin: 0.5em 0;
  padding: 0.35em 0 0.35em 0.75em;
  border-left: 3px solid rgba(59, 130, 246, 0.45);
  color: var(--text-dim, rgba(0, 0, 0, 0.55));
}

.chat-msg__body hr {
  margin: 0.65em 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-msg__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  word-break: break-all;
}

.chat-msg__body pre {
  margin: 0.5em 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
}

.chat-msg__body pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  word-break: normal;
}

.chat-msg__body table {
  width: 100%;
  margin: 0.5em 0;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.chat-msg__body th,
.chat-msg__body td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.35em 0.45em;
  text-align: left;
  vertical-align: top;
}

.chat-msg__body th {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.chat-msg__body a {
  color: var(--accent, #60a5fa);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-msg__body a:hover {
  color: #93c5fd;
}

.chat-msg--user {
  align-self: flex-end;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 14px 14px 4px 14px;
  color: #0a0a0a;
}

.chat-msg--system {
  align-self: center;
  max-width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: none;
}

.chat-msg p {
  margin: 0;
}

.chat-panel__compose {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.chat-panel__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-panel__input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
}

.chat-panel__input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-panel__input::placeholder {
  color: var(--text-dim);
}

.chat-panel__send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  transition: transform var(--transition), filter var(--transition);
}

.chat-panel__send:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.chat-panel__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-fab {
  width: 56px;
  height: 56px;
  position: relative;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.chat-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.chat-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.chat-fab .icon-close {
  display: none;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
}

.chat-fab .icon-telegram,
.chat-fab .icon-bubble {
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

.chat-fab .icon-telegram {
  opacity: 0;
  transform: scale(0.85) rotate(-10deg);
}

.chat-dock.is-idle .chat-fab .icon-bubble {
  animation: chat-icon-bubble 4.8s ease-in-out infinite;
}

.chat-dock.is-idle .chat-fab .icon-telegram {
  animation: chat-icon-telegram 4.8s ease-in-out infinite;
}

.chat-dock.is-menu-open .chat-fab .icon-bubble,
.chat-dock.is-open .chat-fab .icon-bubble {
  display: none;
}

.chat-dock.is-menu-open .chat-fab .icon-telegram,
.chat-dock.is-open .chat-fab .icon-telegram {
  opacity: 0;
}

.chat-dock.is-menu-open .chat-fab .icon-close,
.chat-dock.is-open .chat-fab .icon-close {
  display: block;
}

.chat-dock.is-menu-open .chat-fab,
.chat-dock.is-open .chat-fab {
  background: #0f172a;
}

@keyframes chat-icon-bubble {
  0%,
  40% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50%,
  90% {
    opacity: 0;
    transform: scale(0.82) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes chat-icon-telegram {
  0%,
  40% {
    opacity: 0;
    transform: scale(0.85) rotate(-10deg);
  }
  50%,
  90% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) rotate(-10deg);
  }
}

/* —— Modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__panel {
  width: min(100%, 420px);
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

@media (min-width: 480px) {
  .modal {
    align-items: center;
  }

  .modal__panel {
    border-radius: var(--radius-lg);
  }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal__head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

/* —— Desktop nav —— */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 0.25rem;
  }

  .main-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.68rem;
  }

  .site-header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .niches-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .niche-tabs {
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    overflow: visible;
  }

  .niche-tab {
    width: 100%;
  }

  .niche-panel {
    flex: 1;
  }

  .integration-card {
    flex-direction: row;
    align-items: stretch;
  }

  .integration-card__content {
    flex: 1;
    min-width: 0;
  }

  .integration-card .crm-mockup {
    flex: 0 0 320px;
    align-self: stretch;
  }

  .voice-split {
    flex-direction: row;
    align-items: center;
  }

  .voice-split__text {
    flex: 1;
  }

  .stats-card {
    flex: 0 0 380px;
  }

  .results-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee {
    animation: none;
  }
}

/* —— Юридические страницы (политика / условия) —— */
.legal-doc__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legal-doc__nav a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-doc__nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  pointer-events: none;
}

.legal-doc__nav-sep {
  color: var(--text-dim);
  user-select: none;
}

.legal-doc__meta {
  margin-bottom: 0.5rem;
}

.legal-doc h2 {
  margin-top: 1.75rem;
}
