/* ===== Lumina — сайт клиента. Тёмная фиолетовая тема ===== */

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { height: 100%; }

body {
  margin: 0;
  /* Каркас: подвал прижат к низу экрана, а длинные разделы прокручиваются
     внутри .page — плашка видна всегда и не уезжает за край. */
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  background: #0C0B18;
  color: #EDEBFF;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

a { color: #BA8BFF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Документы: оферта, персональные данные, дисклеймер ===== */
.doc { max-width: 900px; }
.doc p { margin: 0 0 8px; color: #C9C6DE; }
.doc ul { margin: 0 0 10px; padding-left: 20px; color: #C9C6DE; }
.doc li { margin: 0 0 4px; }
.doc h3 { color: #EDEBFF; font-size: 15px; margin: 18px 0 6px; }
.doc h4 { color: #BA8BFF; font-size: 13.5px; margin: 14px 0 4px; }
.doc-meta { color: #9A96B8; font-size: 12.5px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 2px; }
.doc-sep { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 24px 0 18px; }
.doc-todo {
  border-left: 3px solid #FFB74D;
  background: rgba(255, 183, 77, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0;
  color: #FFD9A0;
  font-size: 13px;
}

h1, h2, h3 { line-height: 1.25; }

/* Мягкое сияние по углам */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.glow-a {
  top: -240px; left: -200px;
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.55), rgba(108, 92, 231, 0) 70%);
  animation: lumina-drift-a 24s ease-in-out infinite alternate;
}
.glow-b {
  bottom: -280px; right: -220px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(186, 139, 255, 0.38), rgba(186, 139, 255, 0) 70%);
  animation: lumina-drift-b 30s ease-in-out infinite alternate;
}

/* ===== Шапка ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(12, 11, 24, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  flex: 0 0 auto;
}
.logo svg { display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; letter-spacing: 0.16em; font-size: 15px; }
.brand-sub { color: #9A96B8; font-size: 11.5px; letter-spacing: 0.06em; }

/* Кнопка меню — только на мобильных */
.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #EDEBFF;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.11); }
.menu-icon { font-size: 15px; }

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

.nav-link {
  position: relative;
  color: #9A96B8;
  padding: 8px 13px;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.05); color: #EDEBFF; text-decoration: none; }
/* Подчёркивание, которое «вырастает» при наведении */
.nav-link::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #9B96F6, #BA8BFF);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { box-shadow: 0 10px 24px rgba(123, 96, 220, 0.35); }
.nav-link.active::after { transform: scaleX(0); }
.nav-link.active {
  background: linear-gradient(135deg, #9B96F6, #BA8BFF);
  color: #0C0B18;
  font-weight: 700;
}

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 13.5px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Плашка сообщений ===== */
.banner {
  position: relative;
  z-index: 4;
  max-width: 1080px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  animation: lumina-banner-in 0.28s ease-out both;
}
.banner.error {
  background: rgba(255, 123, 138, 0.12);
  border: 1px solid rgba(255, 123, 138, 0.35);
  color: #FFD9DD;
}
.banner.ok {
  background: rgba(123, 227, 165, 0.12);
  border: 1px solid rgba(123, 227, 165, 0.35);
  color: #CFF6DF;
}
.banner.warn {
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #FFEAB8;
}

/* ===== Страница и разделы ===== */
/* Прокручиваемая область раздела: подвал всегда остаётся видимым */
.page {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 150, 246, 0.35) transparent;
}
.page::-webkit-scrollbar { width: 10px; }
.page::-webkit-scrollbar-track { background: transparent; }
.page::-webkit-scrollbar-thumb {
  background: rgba(155, 150, 246, 0.3);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 8px;
}
.page::-webkit-scrollbar-thumb:hover { background: rgba(155, 150, 246, 0.55); background-clip: padding-box; }

/* Колонка контента */
.page-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 28px 56px;
}

/* ===== Карточки ===== */
.card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}
.card:last-child { margin-bottom: 0; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.card-head .card-title { margin: 0; }

.sub-title { margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: #EDEBFF; }

.form-card { max-width: 460px; margin-left: auto; margin-right: auto; }
.form-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }

.card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ===== Главный экран ===== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 34px;
  text-align: center;
}

/* Световое пятно за заголовком */
.hero::before {
  content: '';
  position: absolute;
  top: 34%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(155, 150, 246, 0.34), rgba(155, 150, 246, 0) 65%);
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
  animation: lumina-hero-light 7s ease-in-out infinite;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(155, 150, 246, 0.14);
  border: 1px solid rgba(155, 150, 246, 0.35);
  color: #C9C6FF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: lumina-badge 3.6s ease-in-out infinite;
}

/* Заголовок: бегущий градиент по буквам + сияние вокруг них */
.hero-title {
  margin: 18px 0 12px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #FFFFFF 0%, #D6D3FF 18%, #9B96F6 38%, #BA8BFF 52%, #FFFFFF 70%, #A9A4FF 100%);
  background-size: 250% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lumina-title-shine 9s linear infinite,
             lumina-title-glow 4.5s ease-in-out infinite;
}

.hero-lead {
  margin: 0 auto 24px;
  max-width: 640px;
  color: #B9B5D6;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ===== Сетки ===== */
.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid .field { margin-bottom: 0; }

.grid-auto {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}
.features { margin-bottom: 18px; }
.items { margin-top: 0; }

/* ===== Возможности ===== */
.feature { margin-bottom: 0; }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(155, 150, 246, 0.28), rgba(186, 139, 255, 0.18));
  border: 1px solid rgba(155, 150, 246, 0.3);
  font-size: 18px;
  margin-bottom: 12px;
}
.feature-title { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.feature-text { margin: 0; color: #B9B5D6; font-size: 13.5px; }

/* ===== Шаги ===== */
.steps { list-style: none; margin: 0 0 16px; padding: 0; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #9B96F6, #BA8BFF);
  color: #0C0B18;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { font-weight: 600; }

/* ===== Поля ввода ===== */
.field { display: block; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-size: 12.5px;
  color: #9A96B8;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #7E7A9C;
}

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #EDEBFF;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: #BA8BFF;
  box-shadow: 0 0 0 3px rgba(186, 139, 255, 0.15);
}
.input::placeholder { color: #6F6B8C; }

.mono { font-family: Consolas, monospace; font-size: 12.5px; }
.small { font-size: 12px; }
.muted { color: #9A96B8; }
.empty-note { padding: 14px 0; }

/* ===== Каптча ===== */
.captcha-field { margin-bottom: 16px; }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.captcha-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 140px;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(155, 150, 246, 0.1);
  border: 1px dashed rgba(155, 150, 246, 0.4);
  color: #EDEBFF;
  font-size: 17px;
  letter-spacing: 0.06em;
  user-select: none;
}
.captcha-input { max-width: 200px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #EDEBFF;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, filter 0.15s, opacity 0.15s,
              box-shadow 0.25s, transform 0.14s, border-color 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { background: rgba(255, 255, 255, 0.11); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #9B96F6, #BA8BFF);
  border: 1px solid transparent;
  color: #0C0B18;
  font-weight: 700;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9B96F6, #BA8BFF);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(123, 96, 220, 0.45), 0 0 20px rgba(155, 150, 246, 0.4);
}

/* Блик, пробегающий по основной кнопке */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.16); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }
.btn-mini { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }

.form-error { color: #FF7B8A; font-size: 13px; margin-bottom: 12px; }

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.inline-msg { font-size: 13px; margin-top: 12px; }
.inline-msg.ok { color: #7BE3A5; }
.inline-msg.error { color: #FF7B8A; }
.inline-msg.warn { color: #FFD166; }
.inline-msg.muted { color: #9A96B8; }

/* ===== Бейджи ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-ok { background: rgba(123, 227, 165, 0.14); color: #7BE3A5; border-color: rgba(123, 227, 165, 0.35); }
.badge-err { background: rgba(255, 123, 138, 0.14); color: #FF7B8A; border-color: rgba(255, 123, 138, 0.35); }
.badge-warn { background: rgba(255, 209, 102, 0.14); color: #FFD166; border-color: rgba(255, 209, 102, 0.35); }
.badge-muted { background: rgba(255, 255, 255, 0.08); color: #9A96B8; border-color: rgba(255, 255, 255, 0.14); }

/* ===== Список ключ-значение ===== */
.kv-list { display: flex; flex-direction: column; margin-bottom: 16px; }
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.kv-key { color: #EDEBFF; }
.kv-val { color: #9A96B8; text-align: right; word-break: break-word; }

.version-notes {
  white-space: pre-wrap;
  color: #B9B5D6;
  font-size: 13.5px;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Магазин ===== */
.item { margin-bottom: 0; display: flex; flex-direction: column; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-name { margin: 0; font-size: 16px; font-weight: 700; }
.item-kind { color: #9A96B8; font-size: 12.5px; margin-top: 4px; }
.item-desc { color: #B9B5D6; font-size: 13.5px; margin: 12px 0 18px; flex: 1 1 auto; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.item-price {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #9B96F6, #BA8BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Тарифы и окно оплаты ===== */
.plans { margin-bottom: 18px; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.plan:hover { border-color: rgba(186, 139, 255, 0.45); transform: translateY(-2px); }
.plan.active {
  border-color: rgba(186, 139, 255, 0.7);
  background: rgba(155, 150, 246, 0.13);
  box-shadow: 0 12px 32px rgba(120, 96, 220, 0.18);
}
.plan-name { font-size: 16px; font-weight: 700; }
.plan-kind { color: #9A96B8; font-size: 12.5px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 22px; font-weight: 800; }
.plan-old { font-size: 14px; font-weight: 600; color: #9A96B8; text-decoration: line-through; }
.plan .btn { width: 100%; margin-top: 14px; }

.promo-row { display: flex; gap: 10px; margin-top: 2px; }
.promo-row .input { flex: 1 1 auto; }

.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: #9A96B8; font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, 0.09); }

#pay-btn { width: 100%; margin-top: 16px; }

.pay-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.pay-info-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; }

/* Всплывающее окно оплаты */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 24px;
  overflow-y: auto;
  background: rgba(6, 5, 14, 0.74);
}
.modal {
  width: 100%;
  max-width: 520px;
  background: #16142A;
  border: 1px solid rgba(155, 150, 246, 0.25);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.16s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-title { margin: 0; font-size: 19px; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: #C9C6DE;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.modal .kv { margin-bottom: 14px; }

/* ===== Подписка ===== */
.sub-card { border-color: rgba(186, 139, 255, 0.28); }
.sub-note { margin: 0 0 16px; }

.sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sub-price { display: flex; align-items: baseline; gap: 6px; }
.sub-amount {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, #9B96F6, #BA8BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub-currency { font-size: 18px; font-weight: 700; color: #C9C6FF; }
.sub-term { color: #9A96B8; font-size: 13px; }

.sub-active { margin-top: 12px; color: #7BE3A5; font-size: 14px; font-weight: 600; }

.sub-hint { align-self: center; color: #FFD166; font-size: 12.5px; font-weight: 600; }

/* ===== Заказы ===== */
.orders { display: flex; flex-direction: column; gap: 10px; }
.order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}
.order-main { display: flex; flex-direction: column; gap: 3px; }
.order-title { font-weight: 600; }
.order-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ===== Правила ===== */
.rule { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.rule:last-of-type { border-bottom: none; }
.rule-title { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; }
.rule-text { margin: 0; color: #B9B5D6; font-size: 13.5px; }

/* ===== Подвал ===== */
.footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 11, 24, 0.6);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .hero-title { font-size: 38px; }
  .hero { padding: 32px 22px; }
}

@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .banner { margin: 12px 16px 0; }
  .page-inner { padding: 18px 16px 44px; }
  .footer-inner { padding: 18px 16px; }

  /* Меню сворачивается в кнопку */
  .menu-btn { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: #0E0D1C;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }

  .nav-link { padding: 12px 14px; }
  .nav-actions { margin-left: 0; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-actions .btn { flex: 1 1 auto; }
  .user-chip { width: 100%; justify-content: center; }

  /* Одна колонка */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; gap: 14px; }
  .hero-title { font-size: 30px; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .form-card { max-width: none; }
  .captcha-input { max-width: none; }
  .captcha-row { gap: 10px; }
  .item-foot { align-items: flex-start; }
}

/* ===== Анимации интерфейса ===== */
@keyframes lumina-view-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lumina-title-shine {
  from { background-position: 0% 50%; }
  to   { background-position: 250% 50%; }
}
@keyframes lumina-title-glow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(155, 150, 246, 0.35))
            drop-shadow(0 0 30px rgba(186, 139, 255, 0.18));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(186, 139, 255, 0.65))
            drop-shadow(0 0 54px rgba(155, 150, 246, 0.4));
  }
}
@keyframes lumina-hero-light {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.14); }
}
@keyframes lumina-badge {
  0%, 100% { box-shadow: 0 0 0 rgba(155, 150, 246, 0); }
  50%      { box-shadow: 0 0 20px rgba(155, 150, 246, 0.45); }
}
@keyframes lumina-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(70px, 60px, 0) scale(1.15); }
}
@keyframes lumina-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.12); }
  to   { transform: translate3d(-80px, -50px, 0) scale(1); }
}
@keyframes lumina-banner-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lumina-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes lumina-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(155, 150, 246, 0); }
  50%      { box-shadow: 0 0 16px rgba(155, 150, 246, 0.4); }
}

/* Блоки раздела появляются «лесенкой» */
.view:not([hidden]) > * {
  animation: lumina-view-in 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.view:not([hidden]) > *:nth-child(1) { animation-delay: 0.02s; }
.view:not([hidden]) > *:nth-child(2) { animation-delay: 0.07s; }
.view:not([hidden]) > *:nth-child(3) { animation-delay: 0.12s; }
.view:not([hidden]) > *:nth-child(4) { animation-delay: 0.17s; }
.view:not([hidden]) > *:nth-child(n+5) { animation-delay: 0.22s; }

/* Карточки возможностей — по очереди */
.grid-auto.features > .card { animation: lumina-view-in 0.45s ease-out both; }
.grid-auto.features > .card:nth-child(2) { animation-delay: 0.08s; }
.grid-auto.features > .card:nth-child(3) { animation-delay: 0.16s; }
.grid-auto.features > .card:nth-child(4) { animation-delay: 0.24s; }

/* Подъём карточек под курсором */
.plan, .item, .feature {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.25s, background 0.2s;
}
.feature:hover {
  border-color: rgba(155, 150, 246, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(120, 96, 220, 0.2);
}

/* Значки возможностей слегка покачиваются, номера шагов светятся */
.feature-icon { animation: lumina-float 5.5s ease-in-out infinite; }
.feature:nth-child(2) .feature-icon { animation-delay: 0.9s; }
.feature:nth-child(3) .feature-icon { animation-delay: 1.8s; }
.feature:nth-child(4) .feature-icon { animation-delay: 2.7s; }
.step-num { animation: lumina-pulse 4.2s ease-in-out infinite; }
.step:nth-child(2) .step-num { animation-delay: 0.7s; }
.step:nth-child(3) .step-num { animation-delay: 1.4s; }
.step:nth-child(4) .step-num { animation-delay: 2.1s; }

/* Поля ввода подсвечиваются при фокусе */
.input:focus {
  box-shadow: 0 0 0 3px rgba(186, 139, 255, 0.15), 0 0 18px rgba(155, 150, 246, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .feature:hover { transform: none; }
}
