/* ===== Переменные темы ===== */
:root {
  --bg: #0a0e17;
  --bg-soft: #101624;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(18, 24, 38, 0.72);
  --accent-1: #00d4ff;
  --accent-2: #7b61ff;
  --accent-1-rgb: 0, 212, 255;
  --accent-2-rgb: 123, 97, 255;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #7b61ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(123, 97, 255, 0.14));
  --text: #e8ecf4;
  --text-muted: #9aa4b8;
  --error: #ff5d73;
  --success: #2ee6a6;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.32);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 80px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s var(--ease);
}

/* ===== Базовые стили и сброс ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

ul,
ol {
  list-style: none;
}

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

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

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

::selection {
  background: rgba(var(--accent-1-rgb), 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  border-radius: 8px;
}

/* ===== Утилиты ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.08);
  border: 1px solid rgba(var(--accent-1-rgb), 0.2);
  border-radius: 50px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

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

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.glass-card {
  position: relative;
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

/* ===== Кнопки ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--accent-1-rgb), 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-2-rgb), 0.45);
}

.btn--secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-1);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(var(--accent-1-rgb), 0.35);
  color: var(--text);
}

.btn--outline:hover {
  background: rgba(var(--accent-1-rgb), 0.06);
  border-color: var(--accent-1);
}

/* ===== Бейджи ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.08);
  border: 1px solid rgba(var(--accent-1-rgb), 0.22);
  border-radius: 50px;
}

.badge__dot {
  width: 7px;
  height: 7px;
  background: var(--accent-1);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-1);
  animation: blink 2s infinite;
}

/* ===== Фоновые декоративные элементы ===== */
.hero__glow {
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-1-rgb), 0.16) 0%, rgba(var(--accent-2-rgb), 0.08) 45%, transparent 72%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.background-mesh {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

.main {
  position: relative;
  z-index: 1;
}

/* ===== Шапка ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition), transform 0.35s var(--ease);
}

.header--scrolled {
  background: rgba(10, 14, 23, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  display: inline-flex;
  filter: drop-shadow(0 0 10px rgba(var(--accent-1-rgb), 0.5));
}

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

.nav__list {
  display: flex;
  gap: 34px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

.nav__link:hover::after {
  transform: scaleX(1);
}

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

/* Бургер-меню */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.burger--active .burger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Секция Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero__title {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

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

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-card__value {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-card__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Схема мультиагентной сети ===== */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1s var(--ease-out) 0.2s both;
}

.agent-network {
  position: relative;
  width: 100%;
  height: 100%;
}

.agent-network__node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: var(--transition);
}

.agent-network__node--core {
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-color: rgba(var(--accent-1-rgb), 0.6);
  box-shadow: 0 0 40px rgba(var(--accent-1-rgb), 0.25), inset 0 0 24px rgba(var(--accent-2-rgb), 0.2);
}

.agent-network__icon {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agent-network__node--1 { top: 12%; left: 18%; width: 84px; height: 84px; }
.agent-network__node--2 { top: 16%; right: 12%; width: 84px; height: 84px; }
.agent-network__node--3 { bottom: 24%; left: 12%; width: 84px; height: 84px; }
.agent-network__node--4 { bottom: 14%; right: 16%; width: 84px; height: 84px; }

.agent-network__label {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.agent-network__pulse {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-1);
  border-radius: 50%;
  animation: pulseRing 2.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.agent-network__line {
  position: absolute;
  z-index: 1;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(var(--accent-1-rgb), 0.1), rgba(var(--accent-1-rgb), 0.75), rgba(var(--accent-2-rgb), 0.1));
  background-size: 200% 100%;
  animation: lineFlow 3s linear infinite;
}

.agent-network__line--1 { top: 28%; left: 26%; width: 30%; transform: rotate(35deg); }
.agent-network__line--2 { top: 28%; right: 26%; width: 30%; transform: rotate(145deg); }
.agent-network__line--3 { bottom: 34%; left: 24%; width: 32%; transform: rotate(-38deg); }
.agent-network__line--4 { bottom: 30%; right: 24%; width: 32%; transform: rotate(-142deg); }

.hero__widget {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px 20px;
  animation: float 6s ease-in-out infinite;
}

.hero__widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.hero__widget-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: blink 1.6s infinite;
}

.hero__widget-metrics {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Анимации ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes lineFlow {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ===== Секция «Услуги» ===== */
.services {
  position: relative;
  padding: 120px 0;
}

.services__container {
  display: flex;
  flex-direction: column;
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 32px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

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

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--accent-1);
  background: var(--gradient-soft);
  border: 1px solid rgba(var(--accent-1-rgb), 0.15);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  color: #fff;
  background: var(--gradient);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.service-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-1);
  transition: var(--transition);
}

.service-card__link:hover {
  gap: 10px;
}

.service-card--featured {
  background: var(--gradient-soft), var(--surface-strong);
  border-color: rgba(var(--accent-1-rgb), 0.3);
  box-shadow: 0 0 30px rgba(var(--accent-1-rgb), 0.1);
}

.service-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient);
  border-radius: 50px;
}

/* ===== Секция «Возможности» ===== */
.features {
  position: relative;
  padding: 120px 0;
}

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

.features__content {
  text-align: left;
}

.features__content .section-subtitle {
  margin-bottom: 0;
}

.features__list {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-item__number {
  min-width: 48px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0.9;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-item__text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.features__visual {
  position: relative;
}

.dashboard-demo {
  overflow: hidden;
  padding: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.dashboard-demo__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.dashboard-demo__dots {
  display: flex;
  gap: 6px;
}

.dashboard-demo__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-demo__dots span:nth-child(1) { background: #ff5f57; }
.dashboard-demo__dots span:nth-child(2) { background: #febc2e; }
.dashboard-demo__dots span:nth-child(3) { background: #28c840; }

.dashboard-demo__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.dashboard-demo__body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.agent-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot--active {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: blink 2s infinite;
}

.status-dot--processing {
  background: var(--accent-1);
  box-shadow: 0 0 10px var(--accent-1);
  animation: blink 1.4s infinite;
}

.status-dot--waiting {
  background: var(--text-muted);
}

.agent-state {
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}

.dashboard-demo__progress {
  height: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transform-origin: left;
  animation: loadBar 1.6s var(--ease-out) both;
}

.dashboard-demo__footer-info {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@keyframes loadBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ===== Секция «Кейсы» ===== */
.cases {
  position: relative;
  padding: 120px 0;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 36px;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.case-card__tag {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.08);
  border-radius: 50px;
}

.case-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.case-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.case-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: auto;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric-item__value {
  display: block;
  margin-bottom: 4px;
  font-size: 1.9rem;
  font-weight: 800;
}

.metric-item__label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-1);
  transition: var(--transition);
}

.case-card__link:hover {
  gap: 10px;
}

/* ===== Секция «Контакты» ===== */
.contact {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.contact__container {
  position: relative;
  z-index: 1;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__list {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

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

.contact__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--accent-1);
  background: var(--gradient-soft);
  border: 1px solid rgba(var(--accent-1-rgb), 0.2);
  border-radius: 50%;
}

.contact__link {
  font-weight: 600;
  transition: var(--transition);
}

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

.contact__text {
  color: var(--text-muted);
}

.contact__guarantee {
  margin-top: 36px;
  padding: 24px;
}

.contact__guarantee-badge {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-1);
}

.contact__guarantee-list {
  display: grid;
  gap: 10px;
}

.contact__guarantee-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact__guarantee-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--success);
}

.contact__form-wrap {
  padding: 36px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

/* Скрытое поле-ловушка для ботов */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(154, 164, 184, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(var(--accent-1-rgb), 0.15);
}

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

.form-group--error input,
.form-group--error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 93, 115, 0.15);
}

.form-error {
  display: none;
  min-height: 16px;
  font-size: 12px;
  color: var(--error);
}

.form-group--error .form-error {
  display: block;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.checkbox-custom {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--gradient);
  border-color: transparent;
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:focus-visible + .checkbox-custom {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}

.form-group--error .checkbox-custom {
  border-color: var(--error);
}

.contact-form__submit {
  position: relative;
  width: 100%;
  min-height: 52px;
}

.contact-form__submit--loading {
  pointer-events: none;
  opacity: 0.85;
}

.contact-form__submit--loading .btn__text {
  opacity: 0;
}

.contact-form__submit--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-form__note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-form__note a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  display: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-sm);
}

.form-status--success {
  display: block;
  color: var(--success);
  background: rgba(46, 230, 166, 0.1);
  border: 1px solid rgba(46, 230, 166, 0.35);
}

.form-status--error {
  display: block;
  color: var(--error);
  background: rgba(255, 93, 115, 0.1);
  border: 1px solid rgba(255, 93, 115, 0.35);
}

.contact__bg-glow {
  position: absolute;
  right: -10%;
  bottom: -20%;
  z-index: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.2) 0%, rgba(var(--accent-1-rgb), 0.1) 50%, transparent 70%);
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Подвал ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 72px 0 32px;
  background: rgba(10, 14, 23, 0.6);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer__desc {
  max-width: 320px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__title {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
}

.footer__list {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

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

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

.footer__text-muted {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  transition: var(--transition);
}

.footer__legal-link:hover {
  color: var(--accent-1);
}

/* ===== Анимации появления при скролле ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ===== Мобильное меню ===== */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    padding: 40px 24px;
    overflow-y: auto;
    background: rgba(10, 14, 23, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease-out);
  }

  .nav.header__nav--open {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
  }

  .nav__link {
    font-size: 20px;
  }

  .burger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .section {
    padding: 96px 0;
  }

  .hero__container,
  .features__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-h) + 56px);
  }

  .hero__visual {
    order: 2;
    height: 420px;
    max-width: 560px;
    margin: 0 auto;
  }

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

  .hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

/* ===== Адаптив: планшеты и телефоны ===== */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .services__grid,
  .cases__grid {
    grid-template-columns: 1fr;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__visual {
    height: 360px;
  }

  .agent-network__node--core {
    width: 76px;
    height: 76px;
  }

  .hero__widget {
    right: 0;
    left: 0;
    bottom: -10px;
  }

  .contact__form-wrap,
  .case-card,
  .service-card {
    padding: 24px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }

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

  .dashboard-demo__footer-info {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .stat-card__value {
    font-size: 1.4rem;
  }

  .metric-item__value {
    font-size: 1.5rem;
  }

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

  .contact__form-wrap {
    padding: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ===== Доступность: отключение движения ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__content,
  .hero__visual {
    opacity: 1 !important;
    transform: none !important;
  }

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

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

/* ===== Вспомогательные правила для оставшихся классов ===== */
.stat-card {
  min-width: 0;
}

.metric-item {
  min-width: 0;
}

.hero__widget-title {
  letter-spacing: 0.01em;
}

.hero__btn-primary {
  min-width: 220px;
}

.hero__btn-outline {
  min-width: 180px;
}

@media (max-width: 480px) {
  .hero__btn-primary,
  .hero__btn-outline {
    min-width: 0;
  }
}

/* ===== Правки по итогам ревью ===== */
/* Фоновое свечение позиционируется внутри Hero, а не на весь viewport */
.hero {
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  top: -10%;
}

.hero__container {
  position: relative;
  z-index: 2;
}

/* Мобильное меню: догоняет анимацию шапки и затемняет фон */
@media (max-width: 1024px) {
  .nav {
    z-index: 999;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  }

  .nav__link {
    display: block;
    padding: 6px 0;
  }

  .nav:focus-within .nav__link:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 4px;
    border-radius: 4px;
  }
}

/* Видимый фокус для всех интерактивных элементов меню и подвала */
.nav__link:focus-visible,
.footer__link:focus-visible,
.footer__legal-link:focus-visible,
.service-card__link:focus-visible,
.case-card__link:focus-visible,
.contact__link:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* На мобильных тяжёлые backdrop-filter заменяются плотным фоном — производительность */
@media (max-width: 768px) {
  .glass-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(18, 24, 38, 0.92);
  }

  .background-mesh {
    position: absolute;
  }
}

/* Скрыть значок reCAPTCHA */
.grecaptcha-badge { visibility: hidden !important; }
