.crm-alt {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.82em;
  opacity: 0.85;
}

.section--dark .crm-alt,
.cta-section .crm-alt {
  color: #8fa3bc;
  opacity: 0.9;
}

:root {
  --bg: #f4f6f9;
  --bg-alt: #eef2f7;
  --bg-dark: #0f1b2d;
  --surface: #ffffff;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --accent: #00a88a;
  --accent-dark: #008f74;
  --accent-soft: #e6f7f3;
  --bitrix: #2fc6f6;
  --border: #dde4ee;
  --shadow: 0 12px 40px rgba(15, 27, 45, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

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

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: #e8edf5;
}

.section__head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__head--light p {
  color: #9aadc4;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--bitrix));
  color: #fff;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav.is-open {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(47, 198, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(0, 168, 138, 0.1), transparent),
    var(--bg);
}

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

.badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero__note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.flow__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.flow__item--accent {
  background: var(--accent-soft);
  border-color: rgba(0, 168, 138, 0.25);
}

.flow__item strong {
  display: block;
  font-size: 0.95rem;
}

.flow__item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.flow__icon {
  font-size: 1.4rem;
}

.flow__arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.hero__stats li {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  text-align: center;
}

.hero__stats strong {
  display: block;
  font-size: 1.1rem;
}

.hero__stats span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card__num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.card--icon .card__icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card__author {
  margin-top: 12px;
  font-size: 0.82rem !important;
  font-style: italic;
}

.callout {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.callout p {
  font-size: 1.05rem;
  max-width: 640px;
}

/* Modules */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.module__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.module h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.module__tagline {
  font-size: 0.88rem;
  color: var(--accent-dark);
  font-style: italic;
  margin-bottom: 16px;
}

.module ul {
  list-style: disc;
  padding-left: 18px;
}

.module li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Steps */
.steps-block {
  margin-top: 56px;
  padding: 36px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.steps-block h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.steps__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ai-tasks {
  margin-top: 32px;
}

.ai-tasks h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.ai-tasks__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-tasks__grid span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Accordion */
.accordion {
  display: grid;
  gap: 12px;
}

.accordion__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion__item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Results */
.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.result {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
}

.result li {
  font-size: 0.95rem;
  color: #b8c5d8;
  margin-bottom: 10px;
  padding-left: 0;
}

.result strong {
  color: var(--accent);
}

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

.detective__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.detective__step span {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.detective__step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.detective__step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Compare table */
.compare-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.compare-table__row:last-child {
  border-bottom: none;
}

.compare-table__head {
  background: var(--bg-alt);
  font-weight: 700;
}

.compare-table__row > div:first-child {
  font-weight: 600;
}

.compare-table__win {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.pricing__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.pricing__card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing__card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.pricing__card ul {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 24px;
}

.pricing__card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing__total {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing__total span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing__saving {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 168, 138, 0.2);
}

.pricing__saving strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* Niches */
.niches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.niches span {
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.team__member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.team__member h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team__role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.team__member p:last-child {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #0f1b2d 0%, #162840 100%);
  color: #e8edf5;
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: #9aadc4;
  margin-bottom: 20px;
}

.cta-section__list {
  list-style: disc;
  padding-left: 20px;
}

.cta-section__list li {
  margin-bottom: 8px;
  color: #c5d2e3;
}

.cta-section__action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-section .btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Footer */
.footer {
  padding: 40px 0;
  background: #0a1220;
  color: #8fa3bc;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer__brand strong {
  color: #fff;
  display: block;
}

.footer__brand p {
  font-size: 0.88rem;
}

.footer__legal {
  font-size: 0.85rem;
  text-align: right;
}

.footer__legal a {
  color: var(--bitrix);
  margin-top: 6px;
  display: inline-block;
}

.footer__legal a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid,
  .modules,
  .results,
  .detective,
  .cta-section__inner {
    grid-template-columns: 1fr;
  }

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

  .pricing,
  .team {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav,
  .header__actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .cards--4,
  .pricing,
  .team,
  .compare-table__row {
    grid-template-columns: 1fr;
  }

  .compare-table__head {
    display: none;
  }

  .compare-table__row {
    gap: 8px;
    padding: 16px;
  }

  .compare-table__row > div:first-child {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal {
    text-align: left;
  }
}
