/* ============================================================
   RustDesk промо-лендинг — style.css
   Оглавление:
   1. Переменные и база
   2. Кнопки и общие элементы
   3. Шапка (nav)
   4. Герой (hero)
   5. Демо-сценка (demo)
   6. Статистика (stats)
   7. Секции: заголовки, шаги, возможности
   8. Интерфейс / вкладки (shots)
   9. Отзывы (reviews)
   10. FAQ
   11. Финальный CTA и футер
   12. Анимации появления (reveal)
   13. Keyframes
   ============================================================ */

/* ---------- 1. Переменные и база ---------- */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #60a5fa;
  --sky: #eff6ff;
  --sky-line: #bfdbfe;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg-soft: #f8fafc;
  --green: #10b981;
  --green-dark: #059669;
  --dark: #0f172a;
  --dark-card: #1e293b;
  --dark-line: #334155;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sky-line); }

img { max-width: 100%; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.mono { font-family: "JetBrains Mono", monospace; }

/* Маленький ярлык над заголовком секции */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.section-head { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.section-head p { font-size: 16.5px; color: var(--slate); }

/* ---------- 2. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  padding: 16px 28px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
}
.btn--primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.4);
}

.btn--nav {
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: 10px;
  white-space: nowrap;
}
.btn--nav:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

.btn--white {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--blue-dark);
  font-size: 17px;
  padding: 16px 30px;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.3);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.4);
}

/* Пробегающий блик на главных кнопках */
.btn__shine {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-130%) skewX(-18deg);
  animation: shine 4s ease-in-out 1.8s infinite;
  pointer-events: none;
}
.btn--white .btn__shine {
  background: linear-gradient(105deg, rgba(29,78,216,0) 0%, rgba(29,78,216,0.14) 50%, rgba(29,78,216,0) 100%);
  animation-delay: 2.6s;
}

/* Зелёная пульсирующая точка */
.dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--green);
}
.dot--pulse { animation: pulse-dot 1.8s infinite; }

/* ---------- 3. Шапка ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo img { height: 26px; display: block; }

.nav__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--sky);
  border: 1px solid var(--sky-line);
  border-radius: 6px;
  padding: 3px 7px;
}

.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav__links a { color: var(--slate); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--blue); }

/* Полоса прогресса прокрутки */
.nav__progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- 4. Герой ---------- */
.hero {
  background: radial-gradient(1100px 520px at 75% -12%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%), #fff;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 64px;
}

.hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--sky);
  border: 1px solid var(--sky-line);
  border-radius: 99px;
  padding: 6px 13px;
}

.hero__copy h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__copy h1 em { font-style: normal; color: var(--blue); }

.hero__lead { font-size: 18.5px; color: var(--slate); max-width: 46ch; text-wrap: pretty; }
.hero__note { font-size: 13.5px; color: var(--muted); }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Каскадный въезд героя */
.hero__badge  { animation: enter 0.6s ease both; }
.hero__copy h1 { animation: enter 0.6s ease 0.07s both; }
.hero__lead   { animation: enter 0.6s ease 0.14s both; }
.hero__actions { animation: enter 0.6s ease 0.21s both; }
.hero__note   { animation: enter 0.6s ease 0.28s both; }

/* ---------- 5. Демо-сценка ---------- */
.demo { perspective: 1100px; min-width: 0; }

.demo__tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.demo__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  padding: 18px;
  animation: enter 0.7s ease 0.15s both, float 7s ease-in-out 1.2s infinite;
}

.demo__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.demo__label { font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: #64748b; }
.demo__live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--green-dark); }

.demo__stage {
  position: relative;
  height: 330px;
  border-radius: 14px;
  background: radial-gradient(circle, #dbe4f0 1px, transparent 1px) 0 0 / 18px 18px, #f6f8fc;
  border: 1px solid #e8edf5;
  overflow: hidden;
}

/* Мини-окна внутри сцены */
.win {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.13);
}
.win__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 12px 12px 0 0;
}
.win__title { font-size: 11px; font-weight: 600; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__controls { font-family: "JetBrains Mono", monospace; font-size: 9px; color: var(--muted); letter-spacing: 0.14em; flex-shrink: 0; }
.win__body { padding: 13px 14px 14px; }

.win--partner { top: 18px; right: 18px; width: 246px; z-index: 2; animation: fade-up 0.5s ease both; }
.win--you { bottom: 18px; left: 18px; width: 296px; z-index: 3; }

.field-label { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.field-group { display: flex; flex-direction: column; gap: 3px; }

.win--partner .win__body { position: relative; display: flex; flex-direction: column; gap: 10px; }
.partner-id { font-family: "JetBrains Mono", monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.partner-pass { font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 700; color: var(--slate); letter-spacing: 0.2em; }

/* Подсветка окна на шаге 1 */
.win__ring {
  position: absolute;
  inset: -2px;
  border: 2px solid var(--blue);
  border-radius: 13px;
  pointer-events: none;
  animation: pulse-ring 1.6s infinite;
  display: none;
}

/* Оверлей «Экран транслируется» на шаге 4 */
.win__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fade-up 0.4s ease both;
}
.win__overlay span {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
}

/* Форма подключения в вашем окне */
.connect-form { display: flex; flex-direction: column; gap: 10px; }

.connect-form__input {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  min-height: 21px;
}
.connect-form__typed { font-weight: 700; letter-spacing: 0.04em; }
.connect-form__placeholder { color: #b6c2d4; }
.connect-form__caret { width: 2px; height: 16px; background: var(--blue); animation: blink 1.05s steps(1) infinite; }

.connect-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.connect-form__btn:hover { background: var(--blue-dark); }
.connect-form__btn:active { transform: scale(0.97); }
.connect-form__btn .spinner { display: none; }

/* Экран удалённого стола после подключения */
.mini-desktop {
  position: relative;
  height: 148px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(155deg, #93c5fd 0%, #3b82f6 100%);
  display: none;
  animation: fade-up 0.45s ease both;
}
.mini-desktop__win {
  position: absolute;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mini-desktop__win--a { left: 10%; top: 12%; width: 46%; height: 46%; }
.mini-desktop__win--b { right: 8%; top: 30%; width: 38%; height: 40%; }
.mini-desktop__win i { height: 5px; border-radius: 3px; background: var(--line-soft); }
.mini-desktop__win i:first-child { background: #dbe4f0; }
.mini-desktop__taskbar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 16px; background: rgba(255,255,255,0.82); border-radius: 5px; }
.mini-desktop__cursor { position: absolute; left: 16%; top: 26%; z-index: 2; animation: cursor-path 5.5s ease-in-out infinite; }
.mini-desktop__cursor i {
  display: block;
  width: 13px; height: 13px;
  border-radius: 99px;
  background: var(--blue);
  border: 2.5px solid #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
}
.mini-desktop__chip {
  position: absolute;
  left: 8px; top: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #047857;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}

/* Линия соединения между окнами */
.demo__link { position: absolute; left: 21%; top: 49%; width: 58%; height: 3px; transform: rotate(-15deg); z-index: 1; display: none; animation: fade-up 0.4s ease both; }
.demo__wire { display: block; width: 100%; height: 3px; border-radius: 3px; }

.demo__badge {
  position: absolute;
  left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: none;
  align-items: center;
  gap: 7px;
  background: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  animation: fade-up 0.5s ease both;
}
.demo__badge--enc { border: 1px solid var(--sky-line); color: var(--blue-dark); }
.demo__badge--ok { border: 1px solid #a7f3d0; color: var(--green-dark); }

.spinner {
  width: 10px; height: 10px;
  border: 2px solid var(--sky-line);
  border-top-color: var(--blue);
  border-radius: 99px;
  animation: spin 0.7s linear infinite;
}
.connect-form__btn .spinner { width: 12px; height: 12px; border-color: rgba(255,255,255,0.4); border-top-color: #fff; }

/* Состояния сцены по шагам (data-step на .demo__stage) */
.demo__stage[data-step="0"] .win__ring { display: block; }
.demo__stage[data-step="2"] .demo__link,
.demo__stage[data-step="3"] .demo__link { display: block; }
.demo__stage[data-step="2"] .demo__wire {
  background: repeating-linear-gradient(90deg, var(--blue) 0 12px, transparent 12px 24px);
  background-size: 24px 3px;
  animation: dash 0.5s linear infinite;
}
.demo__stage[data-step="3"] .demo__wire { background: var(--green); box-shadow: 0 0 12px rgba(16, 185, 129, 0.55); }
.demo__stage[data-step="2"] .demo__badge--enc { display: inline-flex; }
.demo__stage[data-step="3"] .demo__badge--ok { display: inline-flex; }
.demo__stage[data-step="3"] .win__overlay { display: flex; }
.demo__stage[data-step="3"] .connect-form { display: none; }
.demo__stage[data-step="3"] .mini-desktop { display: block; }
.demo__stage[data-step="2"] .connect-form__btn .spinner { display: block; }

/* Подпись под сценой и точки навигации */
.demo__caption { display: flex; align-items: center; gap: 14px; padding: 14px 4px 2px; }
.demo__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--sky);
  border-radius: 7px;
  padding: 4px 8px;
  flex-shrink: 0;
}
.demo__text { flex: 1; font-size: 13.5px; color: var(--slate); min-height: 40px; display: flex; align-items: center; }
.demo__nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.demo__dot {
  width: 9px; height: 9px;
  border-radius: 99px;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.demo__dot.is-active { background: var(--blue); transform: scale(1.25); }

.demo__pause {
  margin-left: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.demo__pause:hover { background: var(--line); }

/* ---------- 6. Статистика ---------- */
.stats { border-top: 1px solid #e8edf5; background: rgba(248, 250, 252, 0.6); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.stats__item { display: flex; flex-direction: column; gap: 2px; }
.stats__value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stats__label { font-size: 13.5px; color: #64748b; }

/* ---------- 7. Шаги и возможности ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section--how { padding-bottom: 44px; }
.section--features { padding-top: 44px; }

.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  border-color: var(--sky-line);
}
.step-card__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--sky);
  border-radius: 8px;
  padding: 6px 10px;
  width: fit-content;
}
.step-card h3 { margin-top: 6px; font-size: 19px; font-weight: 700; }
.step-card p { font-size: 15px; color: var(--slate); }

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
.feature-card h3 { font-size: 17.5px; font-weight: 700; }
.feature-card p { font-size: 14.5px; color: var(--slate); }

.feature-card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--sky);
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.feature-card:hover .feature-card__icon { transform: scale(1.12) rotate(-5deg); }

/* ---------- 8. Интерфейс / вкладки ---------- */
.shots { background: var(--dark); }
.shots .section-head h2 { color: #fff; }
.shots .section-head p { color: var(--muted); }
.shots .eyebrow { color: var(--blue-light); }

.shots__tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }

.shots__tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--line);
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.shots__tab:hover { border-color: var(--blue-light); }
.shots__tab i { display: none; width: 8px; height: 8px; border-radius: 99px; background: var(--blue-light); }
.shots__tab.is-active i { display: block; }

.shots__frame {
  margin-top: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.5);
}

.shots__bar { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; }
.shots__light { width: 10px; height: 10px; border-radius: 99px; }
.shots__light--r { background: #f87171; }
.shots__light--y { background: #fbbf24; }
.shots__light--g { background: #34d399; }
.shots__file { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #64748b; }

.shots__panel { display: none; }
.shots__panel.is-active { display: block; animation: fade-up 0.45s ease both; }
.shots__hint { margin: 12px 6px 2px; font-size: 13.5px; color: var(--muted); }

/* Мокап главного окна */
.mock { border-radius: 10px; overflow: hidden; background: #fff; }
.mock__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mock__app { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.mock__app img { width: 16px; height: 16px; }

.mock__columns { display: grid; grid-template-columns: 1fr 1.2fr; }
.mock__col { padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.mock__col--left { border-right: 1px solid var(--line-soft); }
.mock__col--right { background: #fbfcfe; }

.mock__heading { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.mock__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.mock__id { font-family: "JetBrains Mono", monospace; font-size: 30px; font-weight: 700; letter-spacing: 0.03em; }
.mock__pass { font-family: "JetBrains Mono", monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.22em; color: var(--slate); }
.mock__hint { margin-top: auto; font-size: 12.5px; color: var(--muted); }

.mock__pass-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mock__refresh {
  width: 34px; height: 34px;
  border-radius: 99px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 15px;
}

.mock__connect { display: flex; gap: 10px; }
.mock__input {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #b6c2d4;
  background: #fff;
}
.mock__go {
  display: flex;
  align-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
}

.mock__recent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recent-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
.recent-card__icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recent-card__name { font-size: 13px; font-weight: 600; display: block; }
.recent-card__id { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); }

.mock__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}
.mock__status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--green-dark); }
.mock__exe { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--muted); }

/* Мокап удалённого сеанса */
.session {
  position: relative;
  height: 470px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(155deg, #93c5fd 0%, #3b82f6 55%, #1d4ed8 100%);
}
.session__chip {
  position: absolute;
  left: 14px; top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 99px;
  padding: 6px 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}
.session__toolbar {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.82);
  border-radius: 12px;
  padding: 6px;
}
.session__tool { font-size: 11.5px; font-weight: 600; color: #cbd5e1; padding: 5px 11px; }
.session__tool.is-active { color: #fff; background: rgba(255, 255, 255, 0.16); border-radius: 8px; }

.session__window {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}
.session__window--printer { left: 6%; top: 19%; width: 43%; }
.session__window--files { right: 6%; top: 34%; width: 37%; }

.session__winbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}
.session__winbody { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 9px; }

.check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.check-row .ok { color: var(--green-dark); font-weight: 700; }
.session__done {
  margin-top: 4px;
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  padding: 7px 14px;
}

.file-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.file-row__icon { width: 15px; height: 12px; background: var(--sky-line); border-radius: 3px; flex-shrink: 0; }
.file-row__pct { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--blue); font-weight: 700; }
.progress { height: 6px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: 84%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-light), var(--blue)); }
.session__meta { font-size: 11.5px; color: var(--muted); }

.session__taskbar {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  height: 34px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.session__task { width: 18px; height: 18px; border-radius: 5px; background: #dbe4f0; }
.session__task.is-active { background: var(--blue); }
.session__clock { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--slate); }

.session__cursor { position: absolute; left: 16%; top: 26%; z-index: 2; animation: cursor-path 6.5s ease-in-out infinite; }
.session__cursor i {
  display: block;
  width: 14px; height: 14px;
  border-radius: 99px;
  background: var(--blue);
  border: 2.5px solid #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
}

/* ---------- 9. Отзывы ---------- */
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08); }
.review-card blockquote { font-size: 16px; color: #1e293b; text-wrap: pretty; }

.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-card__avatar { width: 40px; height: 40px; border-radius: 99px; object-fit: cover; flex-shrink: 0; }
.review-card__name { font-size: 14.5px; font-weight: 700; display: block; }
.review-card__meta { font-size: 12.5px; color: var(--muted); }

.reviews__note { margin-top: 22px; font-size: 12.5px; color: var(--muted); }

/* ---------- 10. FAQ ---------- */
.faq { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.faq .container { max-width: 880px; }

.faq__list {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.faq__item + .faq__item { border-top: 1px solid var(--line-soft); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq__chevron {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq__answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--slate);
  max-width: 70ch;
  animation: fade-up 0.3s ease both;
}
.faq__item.is-open .faq__answer { display: block; }
.faq__item.is-open .faq__chevron { transform: rotate(45deg); }

/* ---------- 11. Финальный CTA и футер ---------- */
.cta {
  background: radial-gradient(900px 420px at 50% -30%, #3b82f6 0%, rgba(59, 130, 246, 0) 70%), var(--blue-dark);
}
.cta__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.cta__icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}
.cta__icon img { width: 46px; height: 46px; }
.cta h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: #fff; max-width: 20ch; text-wrap: balance; }
.cta p { font-size: 17px; color: var(--sky-line); max-width: 52ch; text-wrap: pretty; }
.cta__note { font-size: 13px; color: #93c5fd; }

.footer { border-top: 1px solid var(--line-soft); }
.footer__inner { padding-top: 34px; padding-bottom: 34px; display: flex; flex-direction: column; gap: 18px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__row img { height: 22px; display: block; }
.footer__links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.footer__links a { color: var(--slate); text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--blue); }
.footer__legal { font-size: 12.5px; color: var(--muted); max-width: 90ch; }

/* Кнопка «наверх» */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 60;
  width: 46px; height: 46px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fade-up 0.3s ease both;
}
.back-top.is-visible { display: flex; }
.back-top:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24); }

/* ---------- 12. Анимации появления при прокрутке ---------- */
/* Элементы прячутся только когда JS работает (класс .js на html) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > :nth-child(1) { transition-delay: 0s; }
.js .reveal-stagger.is-in > :nth-child(2) { transition-delay: 0.09s; }
.js .reveal-stagger.is-in > :nth-child(3) { transition-delay: 0.18s; }
.js .reveal-stagger.is-in > :nth-child(4) { transition-delay: 0.27s; }
.js .reveal-stagger.is-in > :nth-child(5) { transition-delay: 0.36s; }
.js .reveal-stagger.is-in > :nth-child(6) { transition-delay: 0.45s; }

/* ---------- 13. Keyframes ---------- */
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes dash { to { background-position-x: -24px; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes shine { 0% { transform: translateX(-130%) skewX(-18deg); } 45%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); } 70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); } 70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes cursor-path {
  0% { left: 16%; top: 26%; }
  28% { left: 64%; top: 34%; }
  55% { left: 56%; top: 66%; }
  80% { left: 26%; top: 58%; }
  100% { left: 16%; top: 26%; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .mock__columns { grid-template-columns: 1fr; }
  .mock__col--left { border-right: none; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 640px) {
  .hero__copy h1 { font-size: 38px; }
  .section-head h2 { font-size: 29px; }
  .cta h2 { font-size: 31px; }
  .cards--3, .cards--2, .mock__recent { grid-template-columns: 1fr; }
  .demo__stage { height: 300px; }
  .win--you { width: 260px; }
  .win--partner { width: 220px; }
}
