/* Mobile View — landing site styles. Self-contained, no external fonts/CDNs. */
:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --bg2: #eef0f8;
  --card: #ffffff;
  --text: #161a2b;
  --muted: #5b6478;
  --soft: #eef0f6;
  --line: #e5e8f1;
  --accent: #4f46e5;
  --accent2: #7c6ff5;
  --accent-soft: #eef0ff;
  --ok: #16a34a;
  --shadow: 0 18px 50px rgba(79, 70, 229, .18);
  --radius: 18px;
}
/* Набор тёмных переменных (повторяется для авто- и ручного режима). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f16;
  --bg2: #11141f;
  --card: #161a25;
  --text: #e9ecf5;
  --muted: #9aa3b8;
  --soft: #1b2030;
  --line: #283044;
  --accent: #8b8bf5;
  --accent2: #a78bfa;
  --accent-soft: #1b2034;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
:root[data-theme="light"] { color-scheme: light; }
/* Авто-тёмная по системе — только если пользователь не выбрал светлую вручную. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f16;
    --bg2: #11141f;
    --card: #161a25;
    --text: #e9ecf5;
    --muted: #9aa3b8;
    --soft: #1b2030;
    --line: #283044;
    --accent: #8b8bf5;
    --accent2: #a78bfa;
    --accent-soft: #1b2034;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---- Header / nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
}
.nav-links a:hover { color: var(--text); background: var(--soft); text-decoration: none; }
.nav-links a { white-space: nowrap; }
/* Кнопки в навбаре: перебиваем общий серый цвет ссылок навигации. */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.nav-links a.btn-ghost { color: var(--text); }
.lang { border: 1px solid var(--line); }
/* Бургер для мобильной навигации (на десктопе скрыт). */
.burger {
  display: none; margin-left: auto; flex: none;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); cursor: pointer;
}
.burger:hover { background: var(--soft); }
/* Переключатель темы в шапке (вставляется скриптом nav.js). */
.themebtn {
  flex: none; margin-left: 8px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); cursor: pointer;
}
.themebtn:hover { background: var(--soft); }
.themebtn svg { width: 18px; height: 18px; }
/* Показываем нужную иконку: луна — в светлой теме (клик → тёмная), солнце — в тёмной. */
.themebtn .i-sun { display: none; }
.themebtn .i-moon { display: block; }
:root[data-theme="dark"] .themebtn .i-sun { display: block; }
:root[data-theme="dark"] .themebtn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themebtn .i-sun { display: block; }
  :root:not([data-theme="light"]) .themebtn .i-moon { display: none; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; font-size: 14.5px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 20px rgba(79, 70, 229, .3);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(79, 70, 229, .4); }
.btn-ghost { color: var(--text); background: var(--card); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { padding: 13px 24px; font-size: 16px; border-radius: 12px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% auto -10%; height: 520px;
  background: radial-gradient(closest-side, rgba(124, 111, 245, .25), transparent 70%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---- Hero visual: монитор + анимированный телефон ---- */
.hero-visual { display: flex; justify-content: center; }

/* Десктопный монитор компьютера */
.monitor { width: min(100%, 460px); }
.monitor-screen {
  padding: 12px; border-radius: 22px;
  background: linear-gradient(160deg, #262b3a, #14171f);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.05);
}
.mon-glass {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(124,111,245,.45), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(79,70,229,.4), transparent 55%),
    linear-gradient(160deg, #0e1424, #131a2e);
}
/* Лёгкая «шапка браузера» внутри монитора */
.mon-chrome {
  position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 1;
  display: flex; align-items: center; padding: 0 12px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mon-dots { display: flex; gap: 6px; }
.mon-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.mon-dots i:nth-child(1) { background: #ff5f57; }
.mon-dots i:nth-child(2) { background: #febc2e; }
.mon-dots i:nth-child(3) { background: #28c840; }

/* Сцена, по которой ездит телефон */
.dp-stage { position: absolute; inset: 0; }

/* Указатель мыши, «тянущий» телефон */
.dp-cursor {
  position: absolute; width: 16px; height: 16px; z-index: 4;
  left: var(--curx, 55%); top: var(--cury, 55%);
  transition: left var(--move, 2.4s) cubic-bezier(.65, 0, .25, 1),
              top  var(--move, 2.4s) cubic-bezier(.65, 0, .25, 1);
  pointer-events: none;
  background: no-repeat center/contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M1 1l5.5 13 2-5.5L14 6 1 1z" fill="white" stroke="rgba(0,0,0,.55)" stroke-width="1" stroke-linejoin="round"/></svg>');
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
}

/* Сам телефон. Позиция — центр (--cx,--cy) в % сцены, плюс поворот --rot.
   Рамка и геометрия экрана задаются переменными --it/--ib/--il/--ir (insets). */
.dp-phone {
  position: absolute; z-index: 3;
  left: var(--cx, 80%); top: var(--cy, 54%);
  width: var(--pw, 17%);
  aspect-ratio: var(--par, 457 / 939);
  /* Позиция задаётся left/top (в % монитора), а transform только центрирует
     телефон в этой точке и поворачивает его. */
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  transform-origin: center;
  transition: left var(--move, 2.4s) cubic-bezier(.65, 0, .25, 1),
              top  var(--move, 2.4s) cubic-bezier(.65, 0, .25, 1),
              transform var(--move, 2.4s) cubic-bezier(.65, 0, .25, 1);
  will-change: left, top, transform;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.5));
}
.dp-screen {
  position: absolute;
  top: var(--it, 1.6%); bottom: var(--ib, 1.6%);
  left: var(--il, 4.2%); right: var(--ir, 4.4%);
  /* Небольшой радиус: углы экрана уходят под рамку, видимое скругление даёт сам
     вырез рамки. Большой радиус оставлял дырки в углах (особенно у iPhone 11). */
  border-radius: 6% / 3%; overflow: hidden;
  background: linear-gradient(170deg, #5b63f0 0%, #8a7bf6 45%, #b693f3 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.dp-logo {
  width: 44%; height: auto; border-radius: 22%;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  /* Контр-вращение, чтобы лого оставалось вертикальным при повороте телефона. */
  transform: rotate(var(--lrot, 0deg));
  transition: transform var(--move, 2.4s) cubic-bezier(.65, 0, .25, 1);
}
/* Все три рамки лежат в DOM одновременно (предзагружены). Переключаем не src,
   а видимость через opacity — поэтому смена рамки не вызывает перерисовку/мигание. */
.dp-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none; /* клики проходят сквозь рамку к точкам на экране */
}
.dp-frame.on { opacity: 1; }

/* Точки-индикаторы под лого (только в мобильном статичном виде) */
.dp-dots { display: flex; gap: 9px; z-index: 2; }
.dp-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .5);
  transition: background .3s ease, transform .3s ease;
}
.dp-dot:hover { background: rgba(255, 255, 255, .8); }
.dp-dot.on { background: #fff; transform: scale(1.35); }

/* Монитор: ножка и подставка */
.monitor-stand {
  width: 90px; height: 28px; margin: 0 auto;
  background: linear-gradient(#2a3042, #171b27);
}
.monitor-base {
  width: 180px; height: 12px; margin: -2px auto 0; border-radius: 0 0 10px 10px;
  background: linear-gradient(#222838, #161a26);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* Мобильный статичный вид — по умолчанию скрыт (показывается в @media ниже).
   Контейнер — фиксированная область (aspect-ratio по самому высокому кадру),
   телефон центрируется абсолютно внутри неё. Поэтому смена рамки не меняет
   размер области и не «дёргает» остальную страницу. */
.hero-mobile {
  display: none; position: relative; margin: 0 auto;
  width: min(70%, 220px); aspect-ratio: 12 / 25;
}
.hero-mobile .dp-phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; filter: drop-shadow(0 16px 30px rgba(0,0,0,.3));
}

/* ---- Sections ---- */
section.block { padding: 56px 0; }
.block.block-tight { padding-bottom: 0; } /* убираем нижний отступ — сближаем с соседним блоком */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; letter-spacing: -.01em; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }

/* ---- Audience cards ---- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: center;
}
.acard .ic {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, var(--card)), color-mix(in srgb, var(--accent2) 24%, var(--card)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 6px 16px rgba(79, 70, 229, .10);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.acard h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.acard p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- Features grid ---- */
.featbg { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.fcard .ic {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), color-mix(in srgb, var(--accent2) 26%, var(--card)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 6px 16px rgba(79, 70, 229, .10);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.fcard h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; }
.fcard p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- Steps ---- */
.steps { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px;
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.step h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- CTA band ---- */
.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  border-radius: 22px; padding: 44px 30px; text-align: center; box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.cta p { margin: 0 0 22px; opacity: .92; font-size: 17px; }
.cta .btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.26); }
/* Telegram community card */
.cta-tg { background: linear-gradient(135deg, #2aabee, #229ed9); }
.btn-tg { display: inline-flex; align-items: center; gap: 9px; }
.btn-tg svg { width: 20px; height: 20px; }

/* ---- Welcome banner (install page) ---- */
.welcome { text-align: center; padding: 64px 0 20px; }
.welcome .check { width: 66px; height: 66px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 20px; box-shadow: 0 10px 30px rgba(22,163,74,.35); }
.welcome h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; font-weight: 800; }
.welcome p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 44ch; }

/* ---- Tips / callout ---- */
.callout { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.callout .ic { font-size: 22px; }
.callout p { margin: 0; font-size: 14.5px; }

/* ---- UI-значки расширения (для шагов на странице «Как пользоваться») ----
   Чип повторяет вид кнопки в панели, чтобы шаги совпадали с реальным интерфейсом. */
.uikey {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 24px; min-width: 24px; padding: 0 6px; vertical-align: middle; margin: 0 2px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  color: var(--text); font-size: 14px; line-height: 1; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.uikey svg { width: 16px; height: 16px; display: block; }
.uikey img { width: 18px; height: 18px; border-radius: 5px; }
.uikey.tx { font-size: 12.5px; color: var(--muted); }

/* Легенда панели: значок + подпись */
.legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; max-width: 760px; margin: 0 auto; }
.legend .row { display: flex; align-items: center; gap: 12px; }
.legend .row b { font-weight: 700; font-size: 14.5px; }
.legend .row span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 600px) { .legend { grid-template-columns: 1fr; } }

/* Клавиши-капсулы для раздела горячих клавиш. */
.keys { display: inline-flex; align-items: center; gap: 4px; flex: none; }
kbd, .kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 24px; padding: 0 7px; vertical-align: middle;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px;
  background: var(--card); color: var(--text);
  font: 600 12.5px/1 ui-monospace, Menlo, Consolas, monospace;
}
.keys i { color: var(--muted); font-style: normal; font-size: 12.5px; }

/* ---- Privacy article ---- */
.article { max-width: 800px; margin: 0 auto; }
.article h2 { font-size: 21px; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.article h3 { font-size: 16px; margin: 20px 0 6px; }
.article p, .article li { color: var(--text); }
.article .muted { color: var(--muted); }
.article ul { padding-left: 22px; }
.article code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--soft); padding: 1px 6px; border-radius: 5px; }
.perm { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.perm .pname { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--line); margin-top: 20px; padding: 36px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.foot-brand img { width: 24px; height: 24px; border-radius: 6px; }
.disclaimer { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: -1; }
  /* На узких экранах прячем монитор и показываем мобильный статичный телефон. */
  .monitor { display: none; }
  .hero-mobile { display: block; }
  .cards3, .features { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
/* На узких экранах навигация прячется в бургер-меню (выпадающая панель). */
@media (max-width: 680px) {
  .nav-in { gap: 10px; }
  .burger { display: inline-flex; }
  /* На мобильной шапке группируем переключатель темы с бургером справа. */
  .themebtn { margin-left: auto; }
  .themebtn + .burger { margin-left: 8px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); right: 14px; left: 14px;
    flex-direction: column; align-items: stretch; gap: 4px; margin-left: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 10px; box-shadow: var(--shadow); display: none;
  }
  .nav.open .nav-links { display: flex; }
  /* В раскрытом меню показываем все пункты. */
  .nav.open .nav-links a:not(.btn):not(.lang) { display: block; }
  .nav-links a { white-space: nowrap; padding: 11px 13px; border-radius: 10px; font-size: 15px; color: var(--text); }
  .nav-links a:hover { background: var(--soft); }
  .nav-links .lang { text-align: center; }
  .nav-links .btn { width: 100%; justify-content: center; padding: 12px; font-size: 15px; margin-top: 2px; }
  .brand { font-size: 15.5px; }
  .brand img { width: 26px; height: 26px; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 0 24px; }
}

/* =====================================================================
   Микро-анимации и hover-эффекты (лёгкие, без перегруза)
   ===================================================================== */

/* --- Карточки: подъём + акцентная подсветка при наведении --- */
.acard, .fcard, .step {
  position: relative; isolation: isolate;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease, border-color .3s ease;
}
/* Мягкий градиентный отблеск в углу — появляется на hover. */
.acard::after, .fcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(130% 90% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%);
  opacity: 0; transition: opacity .3s ease;
}
.acard:hover, .fcard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: 0 16px 36px rgba(79, 70, 229, .14);
}
.acard:hover::after, .fcard:hover::after { opacity: 1; }
.acard:hover .ic, .fcard:hover .ic { transform: translateY(-2px) scale(1.07) rotate(-3deg); }
.step:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 12px 28px rgba(79, 70, 229, .10);
}

/* --- Кнопки: лёгкое усиление при наведении (поверх существующего lift) --- */
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

/* --- «Дыхание» градиентного пятна в hero --- */
.hero::before { animation: heroFloat 14s ease-in-out infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; }
  50% { transform: translate(4%, 6%) scale(1.08); opacity: 1; }
}

/* --- Появление при скролле (включается классом .reveal-on из <head>) --- */
.reveal-on .section-head:not(.in),
.reveal-on .acard:not(.in),
.reveal-on .fcard:not(.in),
.reveal-on .step:not(.in),
.reveal-on .cta:not(.in),
.reveal-on .hero-visual:not(.in),
.reveal-on .hero-text > *:not(.in) { opacity: 0; }

.reveal-on .section-head.in,
.reveal-on .acard.in,
.reveal-on .fcard.in,
.reveal-on .step.in,
.reveal-on .cta.in,
.reveal-on .hero-visual.in,
.reveal-on .hero-text > *.in {
  animation: revealUp .65s cubic-bezier(.22, .61, .36, 1) backwards;
}
@keyframes revealUp { from { opacity: 0; transform: translateY(20px); } }

/* Уважаем настройку «уменьшить движение»: отключаем все анимации/трансформы. */
@media (prefers-reduced-motion: reduce) {
  .acard, .fcard, .step, .acard .ic, .fcard .ic { transition: none; }
  .acard:hover, .fcard:hover, .step:hover, .acard:hover .ic, .fcard:hover .ic { transform: none; }
  .hero::before { animation: none; }
}
