/* ============ Tokens ============ */
:root {
  --bg: #000000;
  --bg-elevated: #050505;
  --bg-card: #070708;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #e7e9ea;
  --text-muted: #71767b;
  --text-faint: #536471;

  /* Тёплый золотой акцент — только на кнопках действия и ключевых
     акцентах, чтобы взгляд шёл прямо на CTA, а не тонул в монохроме. */
  --accent: #f2b84a;
  --accent-2: #f7c568;
  --accent-soft: rgba(242, 184, 74, 0.14);
  --gradient: linear-gradient(120deg, #ffd479, #f2b84a);

  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.85);
  --glow: 0 0 40px -8px rgba(242, 184, 74, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p, figure, blockquote, figcaption { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--accent); color: #000; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #232936;
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #303848; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translate(-50%, -180%);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(255, 255, 255, .7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7d9dc;
  font-weight: 600;
}
.eyebrow-center { justify-content: center; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 12% -12%, rgba(255, 255, 255, 0.05), transparent 62%),
    radial-gradient(680px 520px at 100% 8%, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--bg);
}

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
}
.navbar.is-scrolled {
  padding: 12px 0;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }

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

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  transition: border-color .25s var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 5px; }
.nav-toggle-bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    gap: 4px;
    background: rgba(17, 20, 28, 0.97);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    backdrop-filter: blur(16px);
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255,255,255,0.05); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-accent {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: #1a1200;
  box-shadow: 0 10px 30px -12px rgba(242, 184, 74, 0.85);
}
.btn-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .7s var(--ease);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(242, 184, 74, 1); }
.btn-accent:hover::after { left: 130%; }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: #ffffff; }

/* ============ Hero ============ */
.hero { position: relative; padding: 180px 0 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 5vw, 68px);
  margin: 0 0 24px;
  /* Перенос уже задан вручную через <br> — balance иначе уносит одиночное тире на свою строку. */
  text-wrap: normal;
}
.hero-title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-faint); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(200deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 72%);
  opacity: .7;
}
.hero-visual .orb {
  position: absolute;
  width: 164px;
  height: 164px;
  top: 50%;
  left: 50%;
  margin: -82px 0 0 -82px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #a3a3a8 48%, #1c1c1f 100%);
  box-shadow:
    0 0 70px -4px rgba(255, 255, 255, .6),
    inset -14px -18px 40px rgba(0, 0, 0, .5);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Орбиты с планетами вокруг ядра. Сама орбита — это кольцо, которое
   вращается целиком; планета приклеена к его краю и едет вместе с ним. */
.hero-visual .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  animation: orbit-spin linear infinite;
}
.hero-visual .orbit-1 {
  width: 254px; height: 254px; margin: -127px 0 0 -127px;
  border-color: rgba(255, 255, 255, .3);
  animation-duration: 16s;
}
.hero-visual .orbit-2 {
  width: 350px; height: 350px; margin: -175px 0 0 -175px;
  animation-duration: 27s;
  animation-direction: reverse;
}
.hero-visual .orbit-3 {
  width: 448px; height: 448px; margin: -224px 0 0 -224px;
  border-color: rgba(255, 255, 255, .08);
  animation-duration: 44s;
}

.hero-visual .planet {
  position: absolute;
  top: 0;
  left: 50%;
  border-radius: 50%;
  background: #fff;
}
.hero-visual .orbit-1 .planet {
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  box-shadow: 0 0 12px rgba(255, 255, 255, .9);
}
.hero-visual .orbit-2 .planet {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: #d4d4d8;
  box-shadow: 0 0 9px rgba(255, 255, 255, .6);
}
.hero-visual .orbit-3 .planet {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: #9a9aa0;
  box-shadow: 0 0 7px rgba(255, 255, 255, .4);
}

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

/* ============ Section shell ============ */
.section { padding: 104px 0; }
.section-tight { padding: 76px 0; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 42px); margin-top: 16px; }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 16.5px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.h2-md { font-size: clamp(28px, 3vw, 40px); margin-top: 16px; }
.lead { color: var(--text-muted); margin-top: 18px; font-size: 16px; }
.lead-narrow { max-width: 420px; }
.lead-fallback { margin-top: 0; margin-bottom: 22px; }
.form-card .btn + .btn { margin-top: 12px; }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  padding: 34px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.service-card .idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, .3);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #d7d9dc;
}
.service-card h3 { font-size: 20px; margin: 18px 0 10px; }
.service-card p { color: var(--text-muted); font-size: 15px; }

/* ============ Split / about ============ */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.split-media {
  aspect-ratio: 1 / 1.04;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .14), transparent 58%),
    var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.split-media .frame {
  position: absolute;
  inset: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
}
.split-media .mark {
  position: absolute;
  bottom: 36px;
  left: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ============ Demo chat (в блоке "Почему мы") ============ */
.demo-chat {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.demo-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, .7);
  animation: demo-chat-pulse 2.2s ease-out infinite;
}
@keyframes demo-chat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.demo-chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
  min-height: 0;
}
.demo-chat-msg {
  max-width: 90%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  animation: demo-chat-in .3s var(--ease);
}
@keyframes demo-chat-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-chat-msg-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.demo-chat-msg-user {
  align-self: flex-end;
  background: var(--gradient);
  color: #06090f;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.demo-chat-msg-error {
  align-self: flex-start;
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #fca5a5;
  border-bottom-left-radius: 4px;
}
.demo-chat-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-shrink: 0;
}
.demo-chat-input {
  flex: 1;
  min-width: 0;
  background: #0e111a;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.demo-chat-input::placeholder { color: #555f72; }
.demo-chat-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.demo-chat-input:disabled { opacity: .5; }
.demo-chat-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: var(--gradient);
  color: #06090f;
  cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.demo-chat-send:hover:not(:disabled) { transform: translateX(2px); }
.demo-chat-send:disabled { opacity: .4; cursor: not-allowed; }
.demo-chat-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  flex-shrink: 0;
}
.demo-chat-note.is-limit { color: #fca5a5; }
.demo-chat-log::-webkit-scrollbar { width: 6px; }
.demo-chat-log::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }

.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--text-muted); font-size: 15px; }
.checklist svg { flex-shrink: 0; color: var(--accent-2); margin-top: 2px; }

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan-card.featured {
  position: relative;
  border-color: rgba(242, 184, 74, .55);
  background: linear-gradient(180deg, rgba(242, 184, 74, .12), var(--bg-card) 42%);
  box-shadow: var(--glow);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--gradient);
  color: #1a1200;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.plan-name { font-size: 15px; color: var(--text-muted); font-weight: 600; letter-spacing: .02em; }
.plan-price {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 14px 0 6px;
}
.plan-price small { font-size: 14px; color: var(--text-faint); font-family: 'Inter', sans-serif; font-weight: 400; }
.plan-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; min-height: 42px; }
.plan-features { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan-features li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); }
.plan-features svg { color: var(--accent-2); flex-shrink: 0; }

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

/* ============ Spotlight ============ */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 68%);
}
.spotlight:hover::before { opacity: 1; }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color .3s var(--ease);
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: rgba(255, 255, 255, .45); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: color .25s var(--ease);
}
.faq-q:hover { color: #ffffff; }
.faq-icon { flex-shrink: 0; color: var(--accent-2); transition: transform .35s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(135deg); }
.faq-a { padding: 0 56px 22px 24px; }
.faq-a p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ============ CTA banner ============ */
.cta-banner {
  border-radius: 22px;
  padding: 64px 48px;
  text-align: center;
  background:
    radial-gradient(620px 280px at 50% 0%, rgba(255, 255, 255, .20), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
}
.cta-banner h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 18px auto 14px; max-width: 620px; }
.cta-banner p { color: var(--text-muted); max-width: 480px; margin: 0 auto 30px; }

/* ============ Contact ============ */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info-item { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: 1px solid var(--border); }
.contact-info-item .ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: #d7d9dc;
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .t { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.contact-info-item .v { display: inline-block; font-size: 15px; margin-top: 4px; transition: color .25s var(--ease); }
a.v:hover { color: #ffffff; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  background: #0e111a;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #555f72; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .errors { color: #f28b8b; font-size: 12.5px; margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: #b95f5f; }
.field .opt { color: var(--text-faint); font-weight: 400; }

/* Honeypot: вне потока, но «видим» для ботов. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-success { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .5); color: #e7e9ea; }
.alert-error { background: rgba(185, 95, 95, .12); border-color: #b95f5f; color: #f0a8a8; }

.form-note { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); text-align: center; line-height: 1.5; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; transition: color .25s; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-wrap { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 84px; }
  /* margin:auto в grid отключает растягивание — ширина схлопнулась бы до нуля. */
  .hero-visual { width: 100%; max-width: 440px; justify-self: center; }
  .split { gap: 44px; }
  .split-media { width: 100%; max-width: 400px; justify-self: center; }
  .services-grid, .pricing-grid, .calc { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .faq-a { padding-right: 24px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .hero { padding: 120px 0 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-banner { padding: 44px 24px; }
  .form-card { padding: 26px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-card { padding: 28px 22px; }
  .plan-card { padding: 28px 22px; }
  .faq-q { font-size: 15px; padding: 18px 18px; gap: 14px; }
  .faq-a { padding: 0 18px 18px; }
  .hero-visual .orb { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .hero-visual .orbit-1 { width: 198px; height: 198px; margin: -99px 0 0 -99px; }
  .hero-visual .orbit-2 { width: 272px; height: 272px; margin: -136px 0 0 -136px; }
  .hero-visual .orbit-3 { width: 344px; height: 344px; margin: -172px 0 0 -172px; }
}

/* ============ Аккаунты: вход, регистрация, кабинет ============ */
.auth-section { padding-top: 150px; }
.auth-container { max-width: 520px; }
.auth-container-wide { max-width: 860px; }
.auth-title { margin-bottom: 10px; }
.auth-lead { margin-top: 0; margin-bottom: 26px; }
.auth-card .eyebrow { margin-bottom: 18px; }
.auth-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: #fff; }

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.account-card-title { font-size: 18px; margin-bottom: 18px; }
.account-data { margin: 0; }
.account-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.account-row:first-child { border-top: none; padding-top: 0; }
.account-row dt { color: var(--text-muted); font-size: 14px; }
.account-row dd { margin: 0; font-size: 14px; font-weight: 500; }
.account-checklist { margin-top: 0; margin-bottom: 22px; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .auth-section { padding-top: 130px; }
}

/* Демо-чат для неавторизованных: замок вместо поля ввода. */
/* Стена после пробных вопросов: показывается на месте поля ввода,
   ответы ИИ при этом остаются выше — человек уже увидел, за что платит. */
.demo-chat-wall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
  text-align: center;
}
.demo-chat-wall p { font-size: 14px; color: var(--text); }
.demo-chat-wall[hidden] { display: none; }

/* Липкая панель: кнопка действия не должна уезжать за экран при скролле. */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 14px 12px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  opacity: 0;
  max-width: calc(100vw - 32px);
}
.sticky-cta.is-visible { transform: translate(-50%, 0); opacity: 1; }
.sticky-cta[hidden] { display: none; }
.sticky-cta-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.sticky-cta-text strong { font-size: 15px; }
.sticky-cta-text span { font-size: 12px; color: var(--text-muted); }

@media (max-width: 560px) {
  .sticky-cta { left: 16px; right: 16px; bottom: 16px; transform: translateY(140%); border-radius: 16px; }
  .sticky-cta.is-visible { transform: translateY(0); }
  .sticky-cta-text span { display: none; }
  .sticky-cta .btn { margin-left: auto; }
}

/* ============ Согласие на обработку ПД / юридические страницы ============ */
.consent-field { margin-bottom: 22px; }
.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-label input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-field.has-error .consent-label { color: #f0a8a8; }

.legal { max-width: 780px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15px; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal li { margin-bottom: 6px; }
.legal-updated { margin-top: 12px; margin-bottom: 24px; color: var(--text-faint); font-size: 13.5px; }
.legal-back { margin-top: 40px; }

/* Ценовой якорь: рядом с зарплатой сотрудника тариф читается как мелочь. */
.anchor-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0 auto 44px;
  padding: 24px 30px;
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
}
.anchor-item { text-align: center; flex: 1; min-width: 200px; }
.anchor-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.anchor-value {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
  color: var(--accent-2);
}
.anchor-value-muted { color: var(--text-faint); text-decoration: line-through; }
.anchor-note { font-size: 13px; color: var(--text-muted); }
.anchor-vs { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; }

.social-proof {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 14px;
  color: var(--text);
}
.social-proof strong { color: var(--accent-2); }

/* ============ Калькулятор упущенной выгоды ============ */
.calc {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.calc-inputs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.calc-field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.calc-field input {
  width: 100%;
  background: #0e111a;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.calc-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.calc-result {
  border: 1px solid var(--accent);
  border-radius: 18px;
  padding: 30px;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card) 60%);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.calc-result-label { font-size: 13.5px; color: var(--text-muted); }
.calc-result-value {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 10px 0 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-result-compare {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 22px;
  min-height: 42px;
}

/* ============ Модалка записи на тариф ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.modal-close:hover { color: var(--text); border-color: var(--text-muted); }
