/* ============================================================
   Cognita — лендинг внедрения ИИ
   Дизайн-система: тёмная тема, неоновые градиенты, стекло
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef0f8;
  --muted: #9aa3b8;
  --muted-2: #6b7488;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --pink: #f471b5;
  --green: #34d399;
  --red: #ff8aa0;
  --grad: linear-gradient(115deg, #7c5cff 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(130deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.1));
  --radius: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Unbounded", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(124, 92, 255, 0.14), transparent 70%),
    radial-gradient(40% 30% at 90% 10%, rgba(34, 211, 238, 0.07), transparent 70%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

::selection { background: rgba(124, 92, 255, 0.5); color: #fff; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }

/* Зерно поверх фона (премиальная текстура) */
.noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Утилиты ---------- */
.container { width: min(1160px, 100% - 40px); margin-inline: auto; position: relative; }

.section { padding: clamp(76px, 9vw, 126px) 0; position: relative; }

.section-head { max-width: 730px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #a9b1c8;
}
.overline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}

h2.title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

.sub { color: var(--muted); font-size: clamp(0.98rem, 1.2vw, 1.08rem); margin-top: 16px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Градиентная рамка карточки */
.gborder {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(11, 13, 22, 0.92), rgba(11, 13, 22, 0.92)) padding-box,
    linear-gradient(140deg, rgba(124, 92, 255, 0.7), rgba(34, 211, 238, 0.35) 45%, rgba(255, 255, 255, 0.1) 75%) border-box;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s, border-color 0.25s, filter 0.25s;
}
.btn svg { flex: none; }

.btn--primary {
  background: var(--grad);
  color: #070812;
  box-shadow: 0 10px 34px -10px rgba(124, 92, 255, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -12px rgba(124, 92, 255, 0.75);
  filter: saturate(1.15);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 7, 12, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.header__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.logo svg { width: 30px; height: 30px; }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--text); background: rgba(124, 92, 255, 0.12); }

.header__cta { display: inline-flex; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 80;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
body.menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 6, 10, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 500;
  padding: 12px 20px;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
body.menu-open .mobile-menu .btn { margin-top: 18px; transition-delay: 0.3s; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(74px + clamp(44px, 7vw, 92px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 32%, #000 30%, transparent 74%);
  mask-image: radial-gradient(ellipse 75% 62% at 50% 32%, #000 30%, transparent 74%);
}

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.6; }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.blob--1 {
  width: 540px; height: 540px; top: -160px; left: -140px; opacity: 0.55;
  background: radial-gradient(circle at 35% 35%, rgba(124, 92, 255, 0.6), transparent 65%);
  animation: blob-drift 19s ease-in-out infinite alternate;
}
.blob--2 {
  width: 480px; height: 480px; top: 60px; right: -180px; opacity: 0.45;
  background: radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.5), transparent 65%);
  animation: blob-drift 24s ease-in-out infinite alternate-reverse;
}
.blob--3 {
  width: 420px; height: 420px; bottom: -220px; left: 38%; opacity: 0.28;
  background: radial-gradient(circle at 50% 50%, rgba(244, 113, 181, 0.45), transparent 65%);
  animation: blob-drift 28s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(64px, 44px, 0) scale(1.14); }
}

.hero__glow {
  position: absolute;
  top: 0; left: 0;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.07) 45%, transparent 70%);
  will-change: transform;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
  color: #cdd3e6;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.015em;
  margin: 24px 0 20px;
}

.hero__lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.13rem); line-height: 1.68; max-width: 560px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 3vw, 42px); margin-top: 48px; }
.stat + .stat { padding-left: clamp(22px, 3vw, 42px); border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 600; }
.stat__label { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 7px; max-width: 170px; }

/* Загрузочная анимация героя */
.hero-anim { opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Мокап чата */
.chat-wrap { position: relative; justify-self: center; width: 100%; max-width: 430px; }

.chat {
  position: relative;
  border-radius: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(11, 13, 22, 0.92), rgba(11, 13, 22, 0.92)) padding-box,
    linear-gradient(140deg, rgba(124, 92, 255, 0.65), rgba(34, 211, 238, 0.4) 42%, rgba(255, 255, 255, 0.12) 75%) border-box;
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.75), 0 0 70px -24px rgba(124, 92, 255, 0.4);
  overflow: hidden;
}

.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.chat__avatar {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(124, 92, 255, 0.7);
}
.chat__avatar svg { width: 20px; height: 20px; }
.chat__name { font-size: 14.5px; font-weight: 600; }
.chat__status { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.chat__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 316px; }

.bubble {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.2px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.bubble.show { opacity: 1; transform: none; }
.bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom-left-radius: 6px;
  color: #dfe3f0;
}
.bubble--user {
  align-self: flex-end;
  background: linear-gradient(115deg, #7c5cff, #5b8cff);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 22px -10px rgba(124, 92, 255, 0.8);
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.typing.show { opacity: 1; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 14px;
  background: rgba(13, 15, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: #d5daea;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  animation: float 6.5s ease-in-out infinite;
  z-index: 2;
}
.chip-float svg { width: 16px; height: 16px; flex: none; }
.chip--1 { top: -20px; left: -28px; animation-delay: 0.9s; }
.chip--2 { bottom: -20px; right: -20px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Маркиза технологий ---------- */
.trust { padding: clamp(34px, 5vw, 54px) 0 0; }
.trust__label { text-align: center; color: var(--muted-2); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 14px; padding-right: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.pill {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: #b7bfd4;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Боли ---------- */
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pain { padding: clamp(24px, 3vw, 30px); display: flex; flex-direction: column; gap: 15px; transition: border-color 0.3s, background-color 0.3s; }
.pain:hover { border-color: rgba(124, 92, 255, 0.35); background: var(--card-hover); }
.pain h3 { font-size: 17.5px; font-weight: 600; line-height: 1.4; }
.pain__fix { color: var(--muted); font-size: 14.6px; line-height: 1.62; }
.pain__fix .arrow { color: var(--cyan); font-weight: 600; margin-right: 4px; }

.icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: #b6a8ff;
  flex: none;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background-color 0.35s;
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--card-hover);
  box-shadow: 0 26px 60px -30px rgba(124, 92, 255, 0.55);
}
.service h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.service p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* ---------- Этапы ---------- */
.steps { position: relative; max-width: 780px; margin: 0 auto; padding-left: 92px; }
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.65), rgba(34, 211, 238, 0.22));
}
.step { position: relative; padding: 24px 0; }
.step__num {
  position: absolute;
  left: -92px;
  top: 24px;
  width: 55px; height: 55px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #cfc6ff;
  background: #0b0d16;
  border: 1px solid rgba(124, 92, 255, 0.38);
  box-shadow: 0 0 26px -6px rgba(124, 92, 255, 0.55);
}
.step h3 { font-size: 18px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 9px; max-width: 580px; }
.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #9fecd9;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

/* ---------- Калькулятор ---------- */
.calc {
  border-radius: 26px;
  padding: clamp(24px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.calc__controls { display: flex; flex-direction: column; gap: 30px; }

.slider-row { display: flex; flex-direction: column; gap: 14px; }
.slider-row__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.slider-row label { font-size: 14.5px; font-weight: 500; color: #cdd3e6; }
.slider-row output {
  min-width: 74px;
  text-align: center;
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.38);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  background:
    linear-gradient(90deg, var(--violet), var(--cyan)) 0 0 / var(--fill, 50%) 100% no-repeat,
    rgba(255, 255, 255, 0.09);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.calc__results {
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.res-label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.res-big { font-family: var(--font-display); font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.1; }
.res-hours { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14.5px; }
.res-hours b { color: var(--text); font-size: 19px; }
.res-divider { height: 1px; background: rgba(255, 255, 255, 0.08); }
.res-note { font-size: 12.5px; color: var(--muted-2); line-height: 1.55; }

/* ---------- Тарифы ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 32px 30px; display: flex; flex-direction: column; position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.plan:hover { transform: translateY(-5px); }
.plan--popular { box-shadow: 0 30px 80px -40px rgba(124, 92, 255, 0.7); }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #070812;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.8);
}
.plan__name { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #a9b1c8; }
.plan__price { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 16px 0 8px; letter-spacing: -0.01em; }
.plan__desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.plan__list { display: flex; flex-direction: column; gap: 13px; margin: 24px 0 28px; }
.plan__list li { display: flex; gap: 11px; font-size: 14.5px; color: #c6cddf; line-height: 1.5; }
.plan__list svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--cyan); }
.plan__cta { margin-top: auto; }

.pricing-note { text-align: center; color: var(--muted-2); font-size: 13.5px; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 790px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border-radius: 18px; overflow: hidden; transition: border-color 0.3s, background-color 0.3s; }
.faq__item.open { border-color: rgba(124, 92, 255, 0.4); background: var(--card-hover); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}
.faq__icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.4s var(--ease), border-color 0.3s, background-color 0.3s;
}
.faq__icon svg { width: 15px; height: 15px; }
.faq__item.open .faq__icon { transform: rotate(45deg); border-color: rgba(124, 92, 255, 0.55); background: rgba(124, 92, 255, 0.14); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq__a-inner { overflow: hidden; }
.faq__a p { padding: 0 24px 24px; color: var(--muted); font-size: 14.8px; line-height: 1.68; max-width: 680px; }
.faq__item.open .faq__a { grid-template-rows: 1fr; }

/* ---------- Контакты + форма ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(36px, 5vw, 72px); align-items: start; }

.perks { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.perks li { display: flex; gap: 13px; font-size: 15px; color: #cdd3e6; align-items: flex-start; }
.perks .check {
  width: 26px; height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
}
.perks .check svg { width: 14px; height: 14px; }

.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease);
}
.contact-link:hover { border-color: rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.07); transform: translateX(4px); }
.contact-link .icon { width: 42px; height: 42px; border-radius: 12px; }
.contact-link small { display: block; color: var(--muted-2); font-size: 12.5px; margin-bottom: 2px; }
.contact-link b { font-size: 15px; font-weight: 600; }

.form { border-radius: 26px; padding: clamp(24px, 3.4vw, 38px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: #b7bfd4; margin-bottom: 8px; }
.field label .req { color: var(--red); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
  background: rgba(255, 255, 255, 0.055);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.field select option { color: #111; background: #fff; }
.field textarea { min-height: 98px; resize: vertical; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: rgba(255, 138, 160, 0.75); }
.err { display: none; color: var(--red); font-size: 12.5px; margin-top: 7px; }
.field.invalid .err { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: var(--muted); line-height: 1.55; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); cursor: pointer; flex: none; }
.checkbox a { color: #b6a8ff; text-decoration: underline; text-underline-offset: 3px; }
.checkbox.invalid { color: var(--red); }

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

.form-success { display: none; text-align: center; padding: 44px 12px; }
.form-success.show { display: block; }
.success-icon {
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--green);
  animation: pop 0.55s var(--ease);
}
.success-icon svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(0.55); opacity: 0; } }
.form-success h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.form-success p { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 380px; margin-inline: auto; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 64px 0 28px; margin-top: clamp(60px, 7vw, 90px); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.25fr; gap: 40px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 320px; line-height: 1.65; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8b93a9; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { color: #b7bfd4; font-size: 14.5px; transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13.5px;
}
.footer__bottom a { color: #b7bfd4; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Появление при скролле ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Юридические страницы ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: calc(74px + 56px) 0 80px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.legal .updated { color: var(--muted-2); font-size: 13.5px; margin-bottom: 30px; }
.legal h2 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 14.8px; line-height: 1.72; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.legal a { color: #b6a8ff; text-decoration: underline; text-underline-offset: 3px; }
.legal .note {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(244, 113, 181, 0.3);
  background: rgba(244, 113, 181, 0.07);
  color: #f3d3e4;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: #b6a8ff; font-weight: 600; font-size: 14.5px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__lead { max-width: 640px; }
  .chat-wrap { margin-top: 26px; }
  .hero__glow { display: none; }
  .chip--1 { left: 6px; }
  .chip--2 { right: 6px; }
}

@media (max-width: 980px) {
  .calc { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
}

@media (max-width: 768px) {
  .services { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .steps { padding-left: 72px; }
  .steps::before { left: 23px; }
  .step__num { left: -72px; width: 47px; height: 47px; border-radius: 14px; font-size: 15px; }
}

@media (max-width: 560px) {
  .container { width: min(1160px, 100% - 32px); }
  .form__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px 22px; }
  .stat + .stat { padding-left: 22px; }
  .chip-float { position: static; display: inline-flex; margin: 0; animation: none; }
  .chip--1 { margin-bottom: 12px; }
  .chip--2 { margin-top: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .plan { padding: 28px 24px; }
}

/* ---------- Уменьшенная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-anim { opacity: 1; transform: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; }
  .hero__canvas { display: none; }
}
