:root {
  --color-accent: #5b4cf5;
  --color-accent-dark: #4334d8;
  --color-accent-soft: #eeecff;
  --color-pink: #ff6fa5;
  --color-green: #1fb67a;
  --color-green-soft: #e3f8ef;
  --color-text: #1c1d2b;
  --color-muted: #5f6377;
  --color-bg: #ffffff;
  --color-bg-tinted: #f5f6fb;
  --color-border: #e4e6f0;
  --color-white: #ffffff;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 40px;
  --space-xl: 40px;
  --container: 1200px;
  --header-height: 72px;
  --shadow: 0 12px 40px rgba(40, 36, 120, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-padding-top: calc(var(--header-height) + var(--space-s));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100px;
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-s);
}

.skip-link:focus {
  top: var(--space-s);
}

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

.container--narrow {
  max-width: 860px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

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

.button--ghost {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.button--ghost:hover {
  background: var(--color-accent-soft);
}

.button--light {
  background: var(--color-white);
  color: var(--color-accent);
}

.button--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--space-s);
  box-shadow: var(--shadow);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.nav__link {
  font-weight: 500;
  text-decoration: none;
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.header__burger {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--color-accent-soft);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.header__burger-line {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}

.hero {
  padding: var(--space-xl) 0;
  background: radial-gradient(circle at 85% 20%, var(--color-accent-soft), transparent 55%),
    radial-gradient(circle at 10% 90%, #ffe9f2, transparent 45%);
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-l);
}

.hero__badge {
  display: inline-block;
  margin-bottom: var(--space-s);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

.hero__title {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
}

.hero__title2 {
  font-size: clamp(24px, 5vw, 28px);
  line-height: 1.0;
  font-weight: 600;
}

.hero__lead {
  margin-top: var(--space-m);
  color: var(--color-muted);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.mockup {
  border-radius: var(--radius-m);
  background: var(--color-white);
  box-shadow: 0 30px 80px rgba(40, 36, 120, 0.18);
  overflow: hidden;
  font-size: 14px;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px var(--space-s);
  background: var(--color-bg-tinted);
  border-bottom: 1px solid var(--color-border);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup__title {
  margin-left: var(--space-xs);
  font-weight: 600;
}

.mockup__body {
  display: grid;
  grid-template-columns: 3fr 2fr;
}

.mockup__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-s);
  border-right: 1px solid var(--color-border);
}

.mockup__chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.mockup__avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-pink);
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
}

.mockup__name {
  font-weight: 600;
}

.mockup__channel {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.mockup__channel--tg {
  background: #e3f2fd;
  color: #1877c9;
}

.mockup__msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
}

.mockup__msg--in {
  align-self: flex-start;
  background: var(--color-bg-tinted);
  border-bottom-left-radius: 4px;
}

.mockup__msg--out {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}

.mockup__input {
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
}

.mockup__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-s);
}

.mockup__card-title {
  font-weight: 700;
}

.mockup__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  color: var(--color-muted);
}

.mockup__tag {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 12px;
}

.mockup__tag--ok {
  background: var(--color-green-soft);
  color: var(--color-green);
}

.section {
  padding: var(--space-xl) 0;
}

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

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.section__lead {
  max-width: 640px;
  margin: var(--space-s) auto 0;
  color: var(--color-muted);
  text-align: center;
}

.screens__row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

.screens__row:nth-of-type(even) .screens__media {
  order: 2;
}

.screens__media {
  position: relative;
  padding-bottom: var(--space-l);
}

.screen {
  margin: 0;
  border-radius: var(--radius-m);
  background: var(--color-white);
  box-shadow: 0 30px 80px rgba(40, 36, 120, 0.18);
  overflow: hidden;
}

.screen__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px var(--space-s);
  background: var(--color-bg-tinted);
  border-bottom: 1px solid var(--color-border);
}

.screen__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.screen__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-bg-tinted);
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

.screen__caption {
  padding: var(--space-xs) var(--space-s);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
}

.screen--small {
  position: absolute;
  right: calc(-1 * var(--space-m));
  bottom: 0;
  width: 46%;
  border: 1px solid var(--color-border);
}

.screens__row:nth-of-type(even) .screen--small {
  right: auto;
  left: calc(-1 * var(--space-m));
}

.screens__title {
  font-size: 26px;
  line-height: 1.3;
}

.screens__text p {
  margin-top: var(--space-xs);
  color: var(--color-muted);
}

.screens__list {
  margin: var(--space-s) 0 0;
  padding-left: var(--space-m);
}

.screens__list li + li {
  margin-top: var(--space-xs);
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.module__icon {
  margin-bottom: var(--space-m);
}

.module__title {
  font-size: 22px;
  line-height: 1.3;
}

.module__text {
  margin-top: var(--space-xs);
  color: var(--color-muted);
}

.bms__letters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.bms__glyph {
  display: block;
  margin-bottom: var(--space-s);
  color: var(--color-accent);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.bms__compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-m);
}

.bms__list {
  margin: var(--space-s) 0 0;
  padding-left: var(--space-m);
}

.bms__list li + li {
  margin-top: var(--space-xs);
}

.bms__column--other {
  color: var(--color-muted);
}

.bms__column--own {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.modules__more {
  margin-top: var(--space-l);
  text-align: center;
  color: var(--color-muted);
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background: var(--color-white);
  text-align: center;
}

.stats__value {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800;
  color: var(--color-accent);
}

.stats__label {
  color: var(--color-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
  counter-reset: step;
}

.steps__item {
  counter-increment: step;
  padding: var(--space-m);
}

.steps__item::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-s);
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 800;
}

.steps__title {
  font-size: 20px;
  line-height: 1.3;
}

.steps__text {
  margin-top: var(--space-xs);
  color: var(--color-muted);
}

.tabs {
  margin-top: var(--space-l);
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}

.tabs__list[hidden] {
  display: none;
}

.tabs__tab {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tabs__tab[aria-selected="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.tabs__panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
}

.js .tabs__panels {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__panel-title {
  margin-bottom: var(--space-s);
  font-size: 22px;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
}

.checklist li::before {
  content: "✓";
  content: "✓" / "";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-green-soft);
  color: var(--color-green);
  font-size: 13px;
  font-weight: 700;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.review__figure {
  margin: 0;
}

.review__text {
  margin: 0;
  font-size: 18px;
}

.review__author {
  margin-top: var(--space-m);
  color: var(--color-muted);
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.plan--featured {
  border: 2px solid var(--color-accent);
}

.plan__badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}

.plan__title {
  font-size: 24px;
  text-align: center;
}

.plan__price {
  color: var(--color-muted);
  text-align: center;
}

.plan__amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-text);
}

.plan__features {
  flex-grow: 1;
}

.compare {
  margin-top: var(--space-l);
  overflow-x: auto;
  border-radius: var(--radius-m);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.compare__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.compare__caption {
  padding: var(--space-m);
  font-size: 22px;
  font-weight: 700;
  text-align: left;
}

.compare__table th,
.compare__table td {
  padding: 14px var(--space-m);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.compare__table th[scope="row"],
.compare__table thead th:first-child {
  text-align: left;
  font-weight: 500;
}

.compare__table thead th {
  font-weight: 700;
}

.mark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
  vertical-align: middle;
}

.mark::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-indent: 0;
  font-weight: 700;
}

.mark--yes::before {
  content: "✓";
  content: "✓" / "";
  border-radius: 50%;
  background: var(--color-green-soft);
  color: var(--color-green);
}

.mark--no::before {
  content: "-";
  content: "-" / "";
  color: var(--color-muted);
}

.faq {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-white);
}

.faq__question {
  position: relative;
  padding: var(--space-m) 64px var(--space-m) var(--space-m);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  right: var(--space-m);
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--color-accent);
}

.faq__item[open] .faq__question::after {
  content: "−";
  content: "−" / "";
}

.faq__answer {
  padding: 0 var(--space-m) var(--space-m);
  color: var(--color-muted);
}

.cta {
  padding: var(--space-xl) var(--space-l);
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--color-accent), #8a5cf6 60%, var(--color-pink));
  color: var(--color-white);
  text-align: center;
}

.cta__title {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.cta__text {
  margin: var(--space-s) auto var(--space-l);
  opacity: 0.9;
}

.footer {
  padding: var(--space-l) 0;
  background: var(--color-bg-tinted);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-l);
}

.footer__tagline {
  margin: var(--space-xs) 0 0;
  color: var(--color-muted);
  font-size: 15px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.footer__heading {
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.footer__list {
  display: grid;
  gap: 6px;
}

.footer__link {
  color: var(--color-muted);
  text-decoration: none;
}

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

.footer__copy {
  grid-column: 1 / -1;
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 15px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  .js .header__burger:not([hidden]) {
    display: flex;
  }

  .js .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: var(--space-m);
  }

  .js .nav--open {
    display: flex;
  }

  .js .nav__list,
  .js .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-s);
  }
}

@media (min-width: 861px) {
  .header__burger {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --space-l: 28px;
    --space-xl: 56px;
  }

  .container {
    padding: 0 var(--space-s);
  }

  .card {
    padding: var(--space-m);
  }

  .modules,
  .bms__letters,
  .bms__compare,
  .reviews,
  .plans,
  .steps,
  .tabs__panels,
  .screens__row,
  .footer__inner,
  .footer__nav {
    grid-template-columns: 1fr;
  }

  .screens__row:nth-of-type(even) .screens__media {
    order: 0;
  }

  .screens__media {
    display: grid;
    gap: var(--space-m);
    padding-bottom: 0;
  }

  .screen--small,
  .screens__row:nth-of-type(even) .screen--small {
    position: static;
    width: 100%;
  }

  .stats {
    gap: var(--space-s);
  }

  .stats__item {
    padding: var(--space-s);
  }

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

  .mockup__chat {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero__actions .button {
    width: 100%;
  }

  .cta {
    padding: var(--space-l) var(--space-m);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .button:hover {
    transform: none;
  }
}

.font-medium {
  font-weight: 500;
  text-decoration: underline;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Кликабельные скриншоты */
.screen__image {
  cursor: zoom-in;
}

/* Затемнение экрана */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

/* Увеличенное изображение */
.image-lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Кнопка закрытия */
.image-lightbox__close {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
}