/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Премиальная тёмная AI/SaaS-палитра: глубокий графит + индиго/циан акценты */
  --bg: #080c16;
  --bg-soft: #0c1322;
  --bg-card: #141d30;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --white: #ffffff;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(99, 102, 241, 0.22);
  --shadow: 0 16px 48px rgba(2, 6, 16, 0.5);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --transition: 0.28s ease;
  /* Стекло и свечение */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(20, 29, 48, 0.86);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glow: 0 0 32px rgba(99, 102, 241, 0.35);
  --glow-strong: 0 0 52px rgba(99, 102, 241, 0.5);
  --grad-accent: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --grad-text: linear-gradient(100deg, #22d3ee 0%, #6366f1 55%, #8b5cf6 100%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Footer sticks to the bottom on short pages */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main > section {
  flex: 1 0 auto;
}

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

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

ul {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

/* ===== Buttons ===== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* Блик по кнопке при наведении */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn--primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.55), 0 0 24px rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: rgba(99, 102, 241, 0.55);
  color: #b7c4ff;
  background: transparent;
}

.btn--outline:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
}

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

.btn--ghost:hover {
  border-color: rgba(99, 102, 241, 0.55);
  color: var(--white);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.header__nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.header__link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.header__link[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Inner pages clear the fixed header */
.main--inner {
  padding-top: var(--header-h);
}

/* Header tools dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color var(--transition);
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle.is-open {
  color: var(--accent);
}

.nav-dropdown__caret {
  transition: transform var(--transition);
}

.nav-dropdown__toggle.is-open .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 232px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(2, 6, 16, 0.45);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 160;
}

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

.nav-dropdown__item {
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown__item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
}

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

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

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

.mobile-menu__link {
  color: var(--muted);
  font-weight: 500;
  padding: 6px 0;
}

.mobile-menu__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu__label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-menu__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-menu__tool {
  background: rgba(18, 26, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.mobile-menu__tool:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

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

.mobile-menu__link[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 88px;
  background:
    radial-gradient(ellipse 90% 55% at 75% -15%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 45% at 8% 110%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at 50% 40%, rgba(14, 27, 64, 0.6), transparent 70%),
    var(--bg);
  overflow: hidden;
}

/* Парящие световые орбы за контентом hero */
.hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
}

.hero__glow--1 {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 70%);
  animation: heroFloat 11s ease-in-out infinite alternate;
}

.hero__glow--2 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.26), transparent 70%);
  animation: heroFloat 14s ease-in-out infinite alternate-reverse;
}

.hero__glow--3 {
  width: 260px;
  height: 260px;
  top: 40%;
  left: 42%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.12), transparent 70%);
  animation: heroFloat 9s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -30px, 0) scale(1.08);
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #b7c4ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

.hero__title {
  font-size: clamp(2.35rem, 6.5vw, 4.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.35));
}

.hero__title span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__subtitle {
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

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

.hero__stats li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero__stats li:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

.hero__stats strong {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

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

.hero__visual {
  position: relative;
  margin-top: 28px;
}

.hero__illustration {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(99, 102, 241, 0.28));
  animation: heroHover 7s ease-in-out infinite alternate;
}

@keyframes heroHover {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

/* Плавное появление элементов hero при загрузке */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content > *,
.hero__visual {
  animation: fadeUp 0.85s ease both;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero__content > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero__content > *:nth-child(5) {
  animation-delay: 0.32s;
}

.hero__visual {
  animation-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .hero__visual,
  .hero__glow,
  .hero__illustration {
    animation: none !important;
  }
}

/* ===== Section head ===== */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head__label {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: #b7c4ff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section-head__title {
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head__text {
  color: var(--muted);
  max-width: 36em;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ===== Tabs ===== */
.tabs-section {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}

/* ===== Tool cards (described instruments) ===== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tool-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 22px;
  background: linear-gradient(165deg, rgba(24, 34, 58, 0.72), rgba(14, 21, 38, 0.92));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(2, 6, 16, 0.42);
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

/* Мягкий световой след за курсором */
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(99, 102, 241, 0.2),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 22px 48px rgba(2, 6, 16, 0.5), 0 0 38px rgba(99, 102, 241, 0.18);
}

.tool-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  transition: color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.tool-card:hover .tool-card__icon {
  color: #7dd3fc;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.35);
  transform: scale(1.07);
}

.tool-card__icon svg {
  width: 24px;
  height: 24px;
}

.tool-card__name {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool-card__desc {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.tool-card__meta {
  margin-top: 2px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #b7c4ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.tool-card__more {
  margin-top: 6px;
  color: #8b9df8;
  font-size: 0.88rem;
  font-weight: 700;
  transition: color var(--transition), transform var(--transition);
}

.tool-card:hover .tool-card__more {
  color: #7dd3fc;
  transform: translateX(3px);
}

/* Panels */
.tab-panel {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tab-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel__grid {
  display: grid;
  gap: 16px;
}

.tab-panel__main {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.tab-panel__num {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.tab-panel__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.25;
}

.tab-panel__text {
  color: var(--muted);
  margin-bottom: 4px;
}

.tab-block {
  margin-top: 6px;
}

.tab-block h4 {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 3px;
  color: #a7b4cc;
  font-size: 0.88rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* Flow */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow span {
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.flow i {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

/* Price card */
.tab-panel__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card {
  background: linear-gradient(165deg, rgba(24, 34, 58, 0.85), rgba(14, 21, 38, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 48px rgba(2, 6, 16, 0.45), 0 0 32px rgba(99, 102, 241, 0.08);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.price-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 22px 56px rgba(2, 6, 16, 0.5), 0 0 40px rgba(99, 102, 241, 0.16);
  transform: translateY(-3px);
}

.price-card h4 {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.price-card ul li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.price-card ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-card ul li span {
  color: var(--muted);
}

.price-card ul li strong {
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.price-card--demo ul li {
  flex-direction: column;
  gap: 2px;
}

.price-card--demo ul li strong {
  text-align: left;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ===== Modal (tab details) ===== */
body.is-locked {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.42);
  backdrop-filter: blur(4px);
  animation: modalFade 0.25s ease;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(22, 31, 54, 0.97), rgba(12, 18, 33, 0.99));
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: var(--radius);
  box-shadow: 0 32px 90px rgba(2, 6, 16, 0.6), 0 0 60px rgba(99, 102, 241, 0.12);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  animation: modalPop 0.3s ease;
}

.modal__head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
  background: linear-gradient(180deg, var(--bg-soft) 70%, rgba(255, 255, 255, 0.05));
  z-index: 2;
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition),
    transform var(--transition);
}

.modal__close:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal__body {
  padding: 4px 22px 26px;
}

/* Модалка инструментов: список слева закреплён и выровнен по краям окна,
   контент справа без прокрутки — всё видно сразу */
.modal__body--split {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.tool-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 12px 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}

.tabs__panels {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 28px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.tool-nav__item {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.tool-nav__item:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(3px);
}

.tool-nav__item.is-active {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--white);
  transform: none;
}

@media (max-width: 767px) {
  .modal__body--split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
  }

  .tool-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .tool-nav__item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 13px;
    font-size: 0.85rem;
  }

  .tool-nav__item:hover {
    transform: none;
  }
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .modal {
    padding: 32px;
  }

  .modal__body {
    padding: 4px 32px 32px;
  }
}

/* ===== Reviews ===== */
.reviews {
  padding: 160px 0 240px;
  background: var(--bg);
}

.reviews__grid {
  display: grid;
  gap: 20px;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.review-card p {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
}

.review-card footer {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Contact ===== */
.contact {
  padding: 160px 0 240px;
  background:
    radial-gradient(ellipse 70% 60% at 90% 20%, rgba(99, 102, 241, 0.08), transparent),
    var(--bg-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact__inner {
  display: grid;
  gap: 36px;
}

.contact__text {
  color: var(--muted);
  margin: 12px 0 24px;
}

.contact__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.contact__list span {
  color: var(--muted);
}

.contact__list a {
  color: var(--accent);
  font-weight: 600;
}

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

/* Form */
.form {
  background: linear-gradient(165deg, rgba(24, 34, 58, 0.85), rgba(14, 21, 38, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 24px 64px rgba(2, 6, 16, 0.5), 0 0 42px rgba(99, 102, 241, 0.1);
}

.form__tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.85rem;
}

.form__tool[hidden] {
  display: none;
}

.form__tool-clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.form__tool-clear:hover {
  background: rgba(99, 102, 241, 0.35);
}

.form__field {
  margin-bottom: 18px;
}

.form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

.form__field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(8, 12, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__field input::placeholder {
  color: #6b7a96;
}

.form__field input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), 0 0 24px rgba(99, 102, 241, 0.25);
}

.form__field input.is-invalid {
  border-color: #ff6b6b;
}

.form__error {
  display: block;
  min-height: 1.2em;
  font-size: 0.78rem;
  color: #ff6b6b;
  margin-top: 4px;
}

.form__note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

.form__success {
  margin-top: 14px;
  padding: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
}

.form__fail {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid #ff6b6b;
  border-radius: var(--radius-sm);
  color: #ff6b6b;
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Call demo: запись разговора (слайдер с 3 записями) ===== */
.call-demo {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 100%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid rgba(99, 102, 241, 0.18);
  border-bottom: 1px solid rgba(99, 102, 241, 0.18);
  overflow: hidden;
}

.call-demo__slider {
  max-width: 860px;
  margin: 0 auto;
}

.call-demo__stage {
  position: relative;
}

.call-demo__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.call-demo__track {
  display: flex;
  transition: transform 0.35s ease;
}

.call-demo__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.call-demo__card {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 34, 58, 0.9), rgba(14, 21, 38, 0.92));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: 0 24px 64px rgba(2, 6, 16, 0.55), 0 0 46px rgba(99, 102, 241, 0.12);
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* Декоративная подсветка-линия сверху карточки */
.call-demo__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
  transition: opacity var(--transition);
}

/* Играющая запись: синее свечение и яркая линия.
   Слайд и карточка — один элемент, поэтому без вложенности. */
.call-demo__slide.is-playing {
  border-color: rgba(129, 140, 248, 0.75);
  box-shadow: 0 28px 70px rgba(2, 6, 16, 0.6), 0 0 60px rgba(99, 102, 241, 0.4), 0 0 110px rgba(139, 92, 246, 0.18);
}

.call-demo__slide.is-playing::before {
  opacity: 1;
}

/* Шапка карточки: аватар ИИ + статус воспроизведения */
.call-demo__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.call-demo__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}

.call-demo__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.call-demo__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.call-demo__sub {
  font-size: 0.83rem;
  color: var(--muted);
}

.call-demo__status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.09);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.call-demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background var(--transition);
}

.call-demo__slide.is-playing .call-demo__dot {
  background: #22c55e;
  animation: callDotPulse 1.1s ease-in-out infinite;
}

@keyframes callDotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.55;
  }
}

/* Волновая форма записи: полосы оживают при воспроизведении */
.call-demo__wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 58px;
  margin: 18px 2px 20px;
}

.call-demo__bar {
  width: 3px;
  height: var(--h, 40%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), #93c5fd);
  transform-origin: center;
  opacity: 0.5;
  animation: callWave 1s ease-in-out infinite alternate;
  animation-play-state: paused;
  animation-delay: calc(var(--i, 0) * -55ms);
  transition: opacity var(--transition);
}

.call-demo__slide.is-playing .call-demo__bar {
  opacity: 1;
  animation-play-state: running;
}

/* Web Audio ведёт полосы напрямую — CSS-анимацию выключаем */
.call-demo__wave.wave-live .call-demo__bar {
  animation: none;
  transition: transform 0.08s linear;
}

@keyframes callWave {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1.15);
  }
}

.call-demo__slide.is-empty .call-demo__wave {
  display: none;
}

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

/* Навигация по записям */
.call-demo__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.call-demo__counter {
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Круглая кнопка «>» / «<» — переход между записями */
.call-demo__next,
.call-demo__prev {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.call-demo__next:hover,
.call-demo__prev:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.call-demo__next[hidden],
.call-demo__prev[hidden] {
  display: none;
}

/* Пока записи нет — управление приглушено */
.call-demo__slide.is-empty .call-demo__row {
  opacity: 0.5;
}

.call-demo__note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Большая круглая кнопка воспроизведения */
.call-demo__play {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

/* Пульсирующие кольца вокруг кнопки во время воспроизведения */
.call-demo__play.is-playing::before,
.call-demo__play.is-playing::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: callRing 1.9s ease-out infinite;
  pointer-events: none;
}

.call-demo__play.is-playing::after {
  animation-delay: 0.95s;
}

@keyframes callRing {
  from {
    transform: scale(0.82);
    opacity: 0.7;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.call-demo__play:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.call-demo__play:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Иконки play/pause переключаются классом is-playing */
.call-demo__icon--pause,
.call-demo__play.is-playing .call-demo__icon--play {
  display: none;
}

.call-demo__play.is-playing .call-demo__icon--pause {
  display: block;
}

.call-demo__time {
  flex: 0 0 auto;
  min-width: 44px;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.call-demo__timeline {
  flex: 1;
  min-width: 100px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) var(--p, 0%),
    rgba(255, 255, 255, 0.05) var(--p, 0%)
  );
  cursor: pointer;
}

.call-demo__timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  cursor: grab;
}

.call-demo__timeline::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  cursor: grab;
}

.call-demo__timeline::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.call-demo__timeline:disabled {
  opacity: 0.45;
  cursor: default;
}

.call-demo__volume {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.call-demo__volume input[type="range"] {
  width: 84px;
  accent-color: var(--accent);
}

@media (max-width: 767px) {
  .call-demo__card {
    padding: 18px 16px;
  }

  .call-demo__head {
    flex-wrap: wrap;
  }

  .call-demo__status {
    margin-left: 62px;
    margin-top: 2px;
  }

  .call-demo__wave {
    height: 44px;
    gap: 3px;
  }

  .call-demo__row {
    flex-wrap: wrap;
  }

  .call-demo__timeline {
    order: 3;
    flex-basis: 100%;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  background: #0c1220;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.footer__copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.footer__contacts a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* ===== Chat bot ===== */
.chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
}

.chat__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.chat__toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.55);
}

.chat__icon-close {
  display: none;
}

.chat.is-open .chat__icon-chat {
  display: none;
}

.chat.is-open .chat__icon-close {
  display: block;
}

.chat__window {
  width: min(440px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 260px));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn 0.25s ease;
}

.chat__window[hidden] {
  display: none;
}

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

.chat__header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: rgba(8, 12, 22, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1e40af);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.chat__header strong {
  display: block;
  font-size: 1.08rem;
}

.chat__header span {
  font-size: 0.85rem;
  color: var(--accent);
}

.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.chat__msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 1.02rem;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}

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

.chat__msg--bot {
  align-self: flex-start;
  background: rgba(8, 12, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
}

.chat__msg--user {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.chat__quick {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(8, 12, 22, 0.5);
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.chat__quick:empty {
  display: none;
}

.chat__quick-btn {
  flex: 0 1 auto;
  padding: 6px 11px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.chat__quick-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  transform: translateX(3px);
}

/* ===== Responsive: tablet+ ===== */
@media (min-width: 640px) {
  .hero__stats li {
    padding: 16px;
  }

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

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

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

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .tab-panel__main {
    padding: 16px 20px;
  }

  .form {
    padding: 36px 32px;
  }

  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .chat {
    right: 24px;
    bottom: 24px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: calc(var(--header-h) + 72px) 0 96px;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .tab-panel__grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 16px;
  }

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

  .tab-panel__aside {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

/* Reduced motion */
@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;
  }
}

/* ===== How: steps + screenshots ===== */
.how {
  padding: 72px 0;
  background: var(--bg);
}

/* ===== Схема работы ИИ (шаги) ===== */
.steps {
  list-style: none;
  position: relative;
  display: grid;
  gap: 18px;
  margin: 8px 0 44px;
  padding-left: 66px;
}

/* Светящийся рельс схемы */
.steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.9) 0%,
    rgba(139, 92, 246, 0.7) 45%,
    rgba(99, 102, 241, 0.12) 100%
  );
}

/* Бегущий импульс по линии */
.steps::after {
  content: "";
  position: absolute;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #7dd3fc, #6366f1 60%, transparent 75%);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.85);
  animation: stepPulse 5s linear infinite;
  pointer-events: none;
}

@keyframes stepPulse {
  0% {
    top: 14px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 26px);
    opacity: 0;
  }
}

.step {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 34, 58, 0.75), rgba(14, 21, 38, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 16, 0.4);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.step:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 18px 48px rgba(2, 6, 16, 0.5), 0 0 36px rgba(99, 102, 241, 0.18);
  transform: translateY(-3px);
}

/* Номер на рельсе */
.step__num {
  position: absolute;
  left: -59px;
  top: 22px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.step__body {
  min-width: 0;
}

.step__head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 10px;
}

.step__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  transition: color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.step:hover .step__icon {
  color: #7dd3fc;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  transform: scale(1.06);
}

.step__flow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b9df8;
  margin-bottom: 2px;
}

.step__title {
  font-size: 1.08rem;
  font-weight: 700;
}

.step__text {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .steps {
    padding-left: 52px;
  }

  .steps::before {
    left: 17px;
  }

  .steps::after {
    left: 12px;
  }

  .step__num {
    left: -52px;
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    top: 20px;
  }
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.shot {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
  background: #131a2c;
}

.shot figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.shot figcaption strong {
  color: var(--text);
}

.shots__note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Facts ===== */
.facts {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.fact-card {
  background: linear-gradient(165deg, rgba(24, 34, 58, 0.75), rgba(14, 21, 38, 0.92));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 36px rgba(2, 6, 16, 0.42);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.fact-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 18px 46px rgba(2, 6, 16, 0.5), 0 0 32px rgba(99, 102, 241, 0.15);
  transform: translateY(-3px);
}

.fact-card__value {
  display: block;
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.fact-card__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.fact-card__src {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.85;
}

.facts-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.facts-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.facts-box__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.facts-box__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.script-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: script;
}

.script-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  counter-increment: script;
}

.script-list li::before {
  content: counter(script);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.script-list li strong {
  color: var(--text);
}

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

.legal-box__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-box__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.legal-box__grid p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-box__grid strong {
  color: var(--text);
}

/* ===== Pricing ===== */
.pricing {
  padding: 72px 0;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.price-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(2, 6, 16, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.price-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.14);
}

.price-item__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.price-item__price {
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.price-item__unit {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.price-item__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  width: 100%;
  display: grid;
  gap: 8px;
}

.price-item__list li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}

.price-item__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.35);
}

.price-item__list strong {
  color: var(--text);
}

.price-item__btn {
  margin-top: auto;
}

.pricing-cta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.pricing-cta p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* ===== Cases ===== */
.cases {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(2, 6, 16, 0.45);
}

.case-card--own {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.12);
}

.case-card__tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.case-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.case-card__stats {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  width: 100%;
  display: grid;
  gap: 10px;
}

.case-card__stats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.case-card__stats strong {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  min-width: 72px;
}

.case-card__stats span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.case-card__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.case-card__phones {
  list-style: none;
  padding: 0;
  margin: 2px 0 4px;
  width: 100%;
  display: grid;
  gap: 6px;
}

.case-card__phones a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.case-card__src {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.85;
}

.cases__note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq {
  padding: 72px 0;
  background: var(--bg);
}

.faq__list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  transition: background-color var(--transition);
}

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

/* Шеврон-стрелка: вниз в закрытом состоянии, вверх в открытом */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
  transition: transform var(--transition), border-color var(--transition);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(225deg);
  border-color: var(--text);
}

/* Шеврон сразу вниз во время анимации закрытия */
.faq-item.is-collapsing summary::after {
  transform: translateY(-50%) rotate(45deg);
  border-color: var(--muted);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-item summary:hover::after {
  border-color: var(--text);
}

.faq-item__body {
  padding: 0 20px 18px;
}

.faq-item__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ===== Responsive: new sections ===== */
@media (min-width: 640px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .pricing-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

@media (min-width: 960px) {
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ===== Эффекты: scroll-reveal, магнитные кнопки, параллакс ===== */

/* Появление при скролле — работает только при живом JS.
   Свойство translate не конфликтует с hover-transform карточек. */
html.js [data-reveal],
html.js .section-head,
html.js .tool-card,
html.js .fact-card,
html.js .price-card,
html.js .shot {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s ease, translate 0.7s ease, transform 0.28s ease,
    box-shadow 0.28s ease, border-color 0.28s ease;
}

html.js [data-reveal].is-visible,
html.js .section-head.is-visible,
html.js .tool-card.is-visible,
html.js .fact-card.is-visible,
html.js .price-card.is-visible,
html.js .shot.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Внутри модалки reveal не нужен — панель и так анимируется */
html.js .modal [data-reveal],
html.js .modal .price-card,
html.js .modal .fact-card {
  opacity: 1;
  translate: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js .section-head,
  html.js .tool-card,
  html.js .fact-card,
  html.js .price-card,
  html.js .shot {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .btn::after {
    display: none;
  }
}

/* ===== Мобильный hero: кнопки столбиком, безопасная типографика ===== */
@media (max-width: 480px) {
  .hero {
    padding: calc(var(--header-h) + 40px) 0 64px;
  }

  .hero__badge {
    font-size: 0.72rem;
    padding: 7px 12px;
  }

  .hero__title {
    font-size: clamp(1.95rem, 8.2vw, 2.55rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 1.02rem;
    margin-bottom: 26px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 8px;
  }

  .hero__stats li {
    padding: 12px 8px;
  }

  .hero__stats strong {
    font-size: 1.22rem;
  }

  .hero__stats span {
    font-size: 0.7rem;
    line-height: 1.35;
  }
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  transform-origin: left center;
}

/* ===== Mobile bottom CTA ===== */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  display: none;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 12, 22, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.mobile-cta.is-shown {
  transform: translateY(0);
}

.mobile-cta .btn {
  flex: 1;
  min-height: 44px;
  font-size: 0.92rem;
}

.mobile-cta .btn--ghost {
  flex: 0 0 auto;
  padding-inline: 16px;
}

@media (max-width: 767px) {
  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 84px;
  }
}

/* ===== Problems / pain points ===== */
.problems {
  padding: 88px 0;
  background: var(--bg-soft);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.problem-card {
  position: relative;
  padding: 24px 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.problem-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent);
}

.problem-card__icon svg {
  width: 22px;
  height: 22px;
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.problem-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

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

@media (min-width: 960px) {
  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Benefits (bento) ===== */
.benefits {
  padding: 96px 0;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bento__card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(99, 102, 241, 0.16),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bento__card:hover::before {
  opacity: 1;
}

.bento__card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.bento__card--wide {
  grid-column: span 1;
}

.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.bento__icon svg {
  width: 22px;
  height: 22px;
}

.bento__card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.bento__card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento__card strong.accent {
  color: var(--cyan);
  font-weight: 700;
}

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

  .bento__card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento__card {
    grid-column: span 2;
  }

  .bento__card--wide {
    grid-column: span 3;
  }

  .bento__card--wide-right {
    grid-column: span 3;
  }
}

/* ===== Spheres / niches chips ===== */
.spheres {
  margin-top: 36px;
}

.spheres__title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: center;
}

.spheres__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.spheres__chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.spheres__chip:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

/* ===== CTA band (после аудио / внизу) ===== */
.cta-band {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 65%),
    var(--bg-soft);
}

.cta-band--primary {
  background:
    radial-gradient(ellipse 80% 100% at 50% 110%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(99, 102, 241, 0.22), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.cta-band__title {
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 20em;
}

.cta-band__text {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36em;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 560px) {
  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cta-band__actions .btn {
    width: 100%;
  }
}

/* ===== Hero: живая звуковая волна в визуализации ===== */
.hero__wave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 72px;
  margin-top: 22px;
  padding: 0 12px;
}

.hero__wave-bars span {
  display: block;
  width: 5px;
  height: 32%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--accent));
  opacity: 0.85;
  animation: heroWave 1.25s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
  transform-origin: center;
}

@keyframes heroWave {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1.35);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__wave-bars span {
    animation: none;
    transform: scaleY(0.8);
  }
}

/* ===== Accessibility: видимый фокус ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.45);
}

/* Уважение к prefers-reduced-motion для интерактива */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .problem-card:hover,
  .bento__card:hover,
  .tool-card:hover,
  .hero__stats li:hover {
    transform: none;
  }

  .mobile-cta {
    transition: none;
  }
}

.call-demo__cta {
  margin-top: 48px;
}

/* ===== Form consent checkbox ===== */
.form__field--check {
  margin-bottom: 4px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  min-height: 44px;
  align-items: center;
}

.form__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__check input[type="checkbox"].is-invalid {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}
