/* ============================================================================
   ARON SYSTEMS — ДИЗАЙН-СИСТЕМА
   ----------------------------------------------------------------------------
   Тёмная тема по умолчанию, светлая — через [data-theme="light"].
   Все цвета и размеры — в CSS-переменных ниже: правится в одном месте.
   ============================================================================ */

/* ---------- ТОКЕНЫ ---------- */
:root {
  /* Тёмная тема (по умолчанию) */
  --bg: #07080f;
  --bg-elevated: #0d0f1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0fa;
  --text-muted: #9aa1bb;
  --text-dim: #6b7290;

  /* Аура: фиолетово-сине-бирюзовый градиент */
  --aura-1: #8b5cf6;
  --aura-2: #4f6ef7;
  --aura-3: #22d3ee;
  --gradient: linear-gradient(120deg, var(--aura-1), var(--aura-2) 50%, var(--aura-3));

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 72px;

  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.35);
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

[data-theme='light'] {
  --bg: #f5f6fb;
  --bg-elevated: #ffffff;
  --surface: rgba(15, 20, 50, 0.04);
  --surface-hover: rgba(15, 20, 50, 0.07);
  --border: rgba(15, 20, 50, 0.1);
  --text: #14172a;
  --text-muted: #4d5470;
  --text-dim: #7b819c;
  --shadow-card: 0 8px 32px rgba(40, 50, 120, 0.1);
}

/* ---------- БАЗА ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.18rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; position: relative; }

/* Градиентный текст — с медленным «переливом» */
.grad {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-shift 7s ease-in-out infinite alternate;
}
@keyframes grad-shift {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

/* Подзаголовок секции */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--aura-3); margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); margin-top: 14px; }

/* ---------- АУРА-ФОН (живые дрейфующие свечения) ---------- */
.aura-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura-bg::before, .aura-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.32;
}
.aura-bg::before {
  width: 640px; height: 640px; top: -220px; right: -140px;
  background: radial-gradient(circle, var(--aura-1), transparent 70%);
  animation: aura-drift-a 26s ease-in-out infinite alternate;
}
.aura-bg::after {
  width: 560px; height: 560px; bottom: -200px; left: -160px;
  background: radial-gradient(circle, var(--aura-3), transparent 70%);
  animation: aura-drift-b 32s ease-in-out infinite alternate;
}
[data-theme='light'] .aura-bg::before,
[data-theme='light'] .aura-bg::after { opacity: 0.16; }
@keyframes aura-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-110px, 80px) scale(1.18); }
}
@keyframes aura-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(90px, -70px) scale(1.12); }
}

/* Тонкая техно-сетка на фоне (затухает книзу) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  --grid-line: rgba(255, 255, 255, 0.035);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 35%, transparent 100%);
}
[data-theme='light'] body::before { --grid-line: rgba(20, 25, 60, 0.05); }

/* Лёгкое «зерно» поверх всего — премиальная киношная текстура */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme='light'] body::after { opacity: 0.025; }

/* ---------- ШАПКА ---------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--gradient); color: #fff;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.45);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }
.logo-text em { font-style: normal; font-weight: 300; color: var(--text-muted); margin-left: 5px; }

.nav { display: flex; gap: 6px; }
.nav-link {
  padding: 9px 16px; border-radius: 999px; font-size: 0.94rem; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }

.header-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА (RU | EN) ---------- */
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.lang-btn {
  border: none; background: transparent; color: var(--text-dim);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 6px 11px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--gradient); color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--surface-hover); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.burger { display: none; }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: none;
  font-weight: 600; font-size: 0.97rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 26px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(99, 102, 241, 0.55); }
.btn-ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- БЕЙДЖИ ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.badge svg { width: 13px; height: 13px; }
.badge-category { color: var(--aura-3); border-color: color-mix(in srgb, var(--aura-3) 35%, transparent); }
.badge-platform { color: var(--text-muted); }
.badge-soon {
  background: color-mix(in srgb, var(--aura-1) 16%, transparent);
  border-color: color-mix(in srgb, var(--aura-1) 40%, transparent);
  color: var(--aura-1); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem;
}

/* ---------- ГЕРОЙ ---------- */
.hero { padding: 110px 0 90px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--aura-3); }
.hero h1 { max-width: 820px; margin: 0 auto 22px; }
.hero p.lead { max-width: 620px; margin: 0 auto 38px; color: var(--text-muted); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Статистика под героем */
.hero-stats {
  display: flex; justify-content: center; gap: 56px; margin-top: 70px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: 1.7rem; display: block; }
.stat span { color: var(--text-dim); font-size: 0.86rem; }

/* ---------- КАРТОЧКИ ПРОДУКТОВ ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px;
}
.product-card {
  position: relative; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* Неоновая линия-акцент сверху — техно-штрих в цвет продукта */
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent 4%, var(--card-accent, var(--aura-2)) 50%, transparent 96%);
  opacity: 0.4; transition: opacity 0.3s;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--card-accent, var(--aura-2)) 50%, transparent);
  box-shadow: var(--shadow-card);
}
.product-card-glow {
  position: absolute; top: -70px; right: -70px; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--card-accent, var(--aura-2)), transparent 70%);
  opacity: 0.1; transition: opacity 0.3s; pointer-events: none;
}
.product-card:hover .product-card-glow { opacity: 0.22; }
.product-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px;
  background: color-mix(in srgb, var(--card-accent, var(--aura-2)) 14%, transparent);
  color: var(--card-accent, var(--aura-2));
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--aura-2)) 30%, transparent);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-icon svg { width: 27px; height: 27px; }
/* Иконка в карточке каталога — компактнее и со свечением на hover */
.product-card .product-icon { width: 44px; height: 44px; border-radius: 12px; }
.product-card .product-icon svg { width: 22px; height: 22px; }
.product-card:hover .product-icon {
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-accent, var(--aura-2)) 45%, transparent);
  transform: scale(1.06);
}
.product-card h3 { font-size: 1.08rem; }
.product-tagline {
  color: var(--card-accent, var(--aura-3)); font-size: 0.85rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Описание обрезается до 3 строк — карточки ровные и компактные при любой длине текста */
.product-desc {
  color: var(--text-muted); font-size: 0.9rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.card-link svg { width: 16px; height: 16px; transition: transform 0.25s; }
.product-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- КАТЕГОРИИ ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.category-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: transform 0.3s, border-color 0.3s;
}
.category-card .product-icon { width: 46px; height: 46px; border-radius: 13px; }
.category-card .product-icon svg { width: 22px; height: 22px; }
.category-card h3 { font-size: 1.05rem; }
.category-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--aura-2) 45%, transparent); }
.category-card .product-icon { flex-shrink: 0; }
.category-card p { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

/* ---------- ФИЛЬТРЫ КАТАЛОГА ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.filter-btn svg { width: 16px; height: 16px; }
.filter-btn:hover { color: var(--text); background: var(--surface-hover); }
.filter-btn.active {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

/* ---------- СТРАНИЦА ПРОДУКТА ---------- */
.product-hero { padding: 90px 0 60px; }
.product-hero-inner { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.product-hero .product-icon { width: 84px; height: 84px; border-radius: 22px; }
.product-hero .product-icon svg { width: 42px; height: 42px; }
.product-hero-text { flex: 1; min-width: 280px; }
.product-hero-text h1 { margin: 8px 0 14px; }
.product-hero-text .lead { color: var(--text-muted); font-size: 1.06rem; max-width: 680px; }
.product-hero .badges { margin-top: 20px; }

/* Описание */
.prose p { color: var(--text-muted); margin-bottom: 16px; max-width: 760px; }

/* Сетка функций */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--aura-3) 40%, transparent); }
.feature-card .product-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; }
.feature-card .product-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Галерея скриншотов: плейсхолдеры. TODO — заменить на реальные изображения. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.screenshot-placeholder {
  aspect-ratio: 9 / 19; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px dashed color-mix(in srgb, var(--text-dim) 55%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--aura-1) 9%, var(--bg-elevated)),
                            color-mix(in srgb, var(--aura-3) 9%, var(--bg-elevated)));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center;
}
.screenshot-placeholder svg { width: 32px; height: 32px; color: var(--text-dim); }
.screenshot-placeholder span { font-size: 0.82rem; color: var(--text-muted); }
.screenshot-placeholder small { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.screenshot-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Блок скачивания */
.download-box {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- ТАРИФЫ ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.plans-grid--single { grid-template-columns: minmax(280px, 380px); justify-content: center; }
.plan-card {
  position: relative; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.plan-card.highlight { border-color: color-mix(in srgb, var(--aura-2) 60%, transparent); }
.plan-card.highlight::before {
  content: 'Популярный'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 16px; border-radius: 999px;
}
/* Английская версия бейджа. Селектор — по data-lang (js/i18n.js), а не по lang:
   Chrome Auto-Translate перезаписывает lang при машинном переводе страницы. */
html[data-lang='en'] .plan-card.highlight::before { content: 'Popular'; }
.plan-price { font-family: var(--font-display); font-size: 2rem; }
.plan-period { color: var(--text-dim); font-size: 0.85rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 0.92rem; }
.plan-features svg { width: 17px; height: 17px; color: var(--aura-3); flex-shrink: 0; margin-top: 3px; }

/* ---------- БЛОК ОПЛАТЫ (заготовка, без реальной интеграции) ---------- */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 820px; margin: 0 auto; }
.payment-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.payment-card .product-icon { width: 56px; height: 56px; }
.payment-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.payment-logos { display: flex; gap: 8px; color: var(--text-dim); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.payment-logos span { border: 1px solid var(--border); border-radius: 7px; padding: 3px 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 19px 24px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface); }
.faq-item summary svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dim); transition: transform 0.25s; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA-СЕКЦИЯ ---------- */
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 26px; padding: 70px 30px;
}
.cta-box::before {
  content: ''; position: absolute; inset: -2px; z-index: -1;
  background: var(--gradient); opacity: 0.13; filter: blur(40px);
}
.cta-box p { color: var(--text-muted); max-width: 540px; margin: 14px auto 30px; }

/* ---------- О КОМПАНИИ ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

/* ---------- КОНТАКТЫ ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.contact-form {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; display: flex; flex-direction: column; gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.form-field input, .form-field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text); font: inherit; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--aura-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aura-2) 22%, transparent);
}
.form-success {
  display: none; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--aura-3) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--aura-3) 40%, transparent);
  color: var(--aura-3); font-weight: 600; font-size: 0.92rem;
}
.form-success.shown { display: flex; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-side .feature-card { display: flex; gap: 16px; align-items: center; }
.contact-side .feature-card .product-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-side .feature-card h3 { margin-bottom: 2px; }

/* ---------- ПОДВАЛ ---------- */
#site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-elevated); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 56px 24px 36px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.93rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 20px 24px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.84rem;
}

/* ---------- АНИМАЦИИ ПОЯВЛЕНИЯ ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* отключаем все декоративные анимации */
  .grad, .aura-bg::before, .aura-bg::after, .logo-mark, .hero::before { animation: none !important; }
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
/* Порог мобильного меню: 860px — с переключателем RU/EN полное меню
   не помещается в шапку на ширинах 761–860px (планшет-портрет) */
@media (max-width: 860px) {
  section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 32px; }

  /* Мобильное меню */
  .burger { display: grid; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; padding: 14px 24px 22px; gap: 4px;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 13px 16px; }

  .product-hero-inner { flex-direction: column; }
  .download-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Компактная шапка: логотип без «SYSTEMS», ужатые кнопки — чтобы
     логотип + RU/EN + тема + бургер помещались без горизонтального скролла */
  .logo-text em { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .lang-btn { padding: 5px 9px; font-size: 0.68rem; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ============================================================================
   ВИЗУАЛЬНЫЕ ЭФФЕКТЫ (работают в паре с js/effects.js)
   ============================================================================ */

/* ---------- Canvas «нейросети» в герое ---------- */
.hero, .product-hero { position: relative; }
.hero > .container, .product-hero > .container { position: relative; z-index: 1; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Пульсирующее гало за заголовком героя */
.hero::before {
  content: ''; position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  width: min(720px, 92vw); height: 420px; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--aura-2) 20%, transparent), transparent 70%);
  filter: blur(60px);
  animation: halo-pulse 7s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- Прогресс-бар прокрутки ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: var(--gradient); transform-origin: 0 0; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

/* ---------- Прожектор на карточках (координаты --mx/--my задаёт JS) ---------- */
.feature-card, .payment-card, .category-card { position: relative; }
.product-card::after, .feature-card::after, .plan-card::after,
.payment-card::after, .category-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--aura-2) 13%, transparent), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.product-card:hover::after, .feature-card:hover::after, .plan-card:hover::after,
.payment-card:hover::after, .category-card:hover::after { opacity: 1; }

/* ---------- 3D-наклон карточек (transform задаёт JS) ---------- */
.product-card.tilt-active { transition: transform 0.12s ease-out; will-change: transform; }

/* ---------- Шиммер на основных кнопках ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.35) 50%, transparent 68%);
  transform: translateX(-130%) skewX(-18deg);
}
.btn-primary:hover::before { animation: sheen 0.9s ease; }
@keyframes sheen {
  to { transform: translateX(130%) skewX(-18deg); }
}

/* ---------- Пульс свечения логотипа ---------- */
.logo-mark { animation: logo-glow 4.5s ease-in-out infinite; }
@keyframes logo-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(99, 102, 241, 0.35); }
  50% { box-shadow: 0 0 32px rgba(99, 102, 241, 0.7); }
}

/* ---------- Кастомный скроллбар и выделение текста ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--aura-1), var(--aura-3));
  border-radius: 99px; border: 2px solid var(--bg);
}
::selection { background: rgba(99, 102, 241, 0.55); color: #fff; }
