/* Neironex Analytics — компоненты магазина.
   Опираются на токены corporate main.css: цвета, шрифты, кегли, радиусы.
   Менять палитру здесь нельзя — только в main.css, иначе сайт разойдётся
   с neironex.ru. */

/* ── Первый экран (скопирован с главной neironex.ru) ───────────────── */
/* ─── Hero ───────────────────────────────────────── */
    .hero {
      min-height: 100vh;
      display: flex; align-items: center;
      padding: 120px 5% 80px;
      position: relative; overflow: hidden;
    }

.hero-glow {
      position: absolute;
      width: 900px; height: 900px;
      top: 50%; right: -100px;
      transform: translateY(-50%);
      background: radial-gradient(ellipse, rgba(0,212,255,0.07) 0%, rgba(91,110,245,0.11) 40%, transparent 70%);
      pointer-events: none;
    }

.hero-inner {
      position: relative; z-index: 1;
      width: 100%; max-width: 1200px; margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

.hero-content {}

.hero-badge { margin-bottom: 1.25rem; }

/* Лозунг вернули главной строкой экрана 28.09.2026: без него первый
       экран не смотрелся. Несёт оформление .h-display — то самое, каким
       раньше был h1. */
    .hero-slogan { margin-bottom: 0.9rem; }

/* h1 остался смысловым — он держит поисковые слова, но визуально это
       подзаголовок под лозунгом. Оба видимы, ничего не спрятано. */
    .hero h1 {
      font-family: var(--f-head);
      font-size: var(--fs-lg);
      font-weight: 600;
      line-height: 1.35;
      letter-spacing: -0.01em;
      color: var(--muted);
      max-width: 460px;
      margin-bottom: 1.5rem;
    }

.hero-sub {
      font-size: clamp(1rem, 2vw, 1.15rem);
      color: var(--muted);
      max-width: 500px;
      margin-bottom: 2.5rem;
      font-weight: 400; line-height: 1.7;
    }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }

.hero-visual-glow {
      position: absolute;
      width: 120%; height: 120%;
      top: 50%; left: 50%; transform: translate(-50%, -50%);
      background: radial-gradient(ellipse, rgba(91,110,245,0.18) 0%, rgba(0,212,255,0.1) 40%, transparent 70%);
      pointer-events: none; z-index: 0;
    }

.hero-logo-3d {
      position: relative; z-index: 1;
      width: 100%; max-width: 540px;
      border-radius: 24px;
      filter: drop-shadow(0 20px 60px rgba(91,110,245,0.3)) drop-shadow(0 0 30px rgba(0,212,255,0.15));
      animation: logoFloat 5s ease-in-out infinite;
    }

@media (max-width: 900px) {
      .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
      .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
      .hero-actions { justify-content: center; }
      .hero-visual { order: -1; }
      .hero-logo-3d { max-width: 320px; }
    }

@keyframes logoFloat {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-12px); }
    }


/* ── Общее ─────────────────────────────────────────────────────────── */
.section-narrow { max-width: 820px; }
.lead-text { color: var(--muted); font-size: var(--fs-md); line-height: 1.75; max-width: 700px; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* ── Таблица замера ────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: 0.85rem 1rem; border: 1px solid var(--border); text-align: left; }
.data-table thead th { background: var(--bg-card2); font-family: var(--f-mono); font-size: var(--fs-xs);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.data-table td { color: var(--muted); }
.data-table td strong { color: var(--text); }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Выноска ───────────────────────────────────────────────────────── */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--bg-card); padding: 1.25rem 1.5rem;
  margin: 1.75rem 0; color: var(--muted); line-height: 1.7; }
.callout strong { color: var(--text); }
.callout code, .inline-code { font-family: var(--f-mono); font-size: 0.9em;
  background: var(--bg-card2); padding: 0.1em 0.45em; border-radius: 4px; color: var(--accent2); }

/* ── Поля ввода ────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 0.5rem; font-family: var(--f-mono); font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; min-height: 52px; padding: 0.85rem 1.1rem; background: var(--bg-card2);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--text);
  font: 400 var(--fs-base) var(--f-body); }
.input::placeholder { color: rgba(138,143,168,0.7); }
.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,110,245,0.18); }
.form-panel { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; }
.form-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-row .input { flex: 1 1 260px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choice { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 1.5rem; color: var(--muted); }
.consent { display: flex; gap: 0.6rem; margin: 1.5rem 0; font-size: var(--fs-sm); color: var(--muted); }
.consent a { color: var(--accent2); }
.form-error { margin-top: 1rem; padding: 0.85rem 1.1rem; border-left: 3px solid #F87171;
  background: rgba(248,113,113,0.08); border-radius: var(--radius-sm); color: #FCA5A5; font-weight: 500; }

/* ── Результат проверки ────────────────────────────────────────────── */
.verdict { margin-top: 2rem; background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--muted); border-radius: var(--radius-lg); padding: 2rem; }
.verdict[data-verdict="found"] { border-left-color: var(--green); }
.verdict[data-verdict="gated"], .verdict[data-verdict="consent_deferred"] { border-left-color: #F59E0B; }
.verdict[data-verdict="missing"] { border-left-color: #F87171; }
.verdict[data-verdict="unknown"] { border-left-color: var(--muted); }
.verdict ul { margin: 1.25rem 0; padding-left: 1.2rem; color: var(--muted); }
.verdict li { margin-bottom: 0.5rem; }
.verdict-note { margin: 1.5rem 0; padding-top: 1.1rem; border-top: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--muted); }

/* ── Страница заказа ───────────────────────────────────────────────── */
.order-card { max-width: 640px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; }
.order-card .btn { margin: 0.35rem 0.25rem; }

/* ── Счёт ──────────────────────────────────────────────────────────── */
.invoice-sheet { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem; }
.invoice-parties { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 1.75rem; }
.invoice-parties th { width: 32%; padding: 0.7rem 1rem 0.7rem 0; text-align: left; vertical-align: top;
  color: var(--muted); font-weight: 400; font-size: var(--fs-sm); }
.invoice-parties td { padding: 0.7rem 0; vertical-align: top; line-height: 1.65; overflow-wrap: anywhere; }
.invoice-sheet .data-table { table-layout: fixed; }
.invoice-sheet .data-table th:first-child { width: 58%; }
.invoice-sheet .data-table th:nth-child(2) { width: 12%; }
.invoice-sheet .data-table th:last-child { width: 30%; }
.invoice-sheet .data-table td:first-child { overflow-wrap: anywhere; }
.invoice-sheet .data-table th:not(:first-child),
.invoice-sheet .data-table td:not(:first-child) { white-space: nowrap; }
.invoice-missing td { color: #FCA5A5; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }

@media (max-width: 720px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .invoice-parties th { display: block; padding-bottom: 0.15rem; }
  .invoice-parties td { display: block; padding-top: 0; }
  .form-panel, .verdict, .order-card, .invoice-sheet { padding: 1.5rem; }
  .invoice-parties { table-layout: auto; }
  .invoice-sheet .data-table th, .invoice-sheet .data-table td { padding: 0.65rem 0.4rem; }
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  .invoice-sheet { border: none; padding: 0; background: #fff; }
  .invoice-parties td, .invoice-parties th, .data-table th, .data-table td { color: #111; border-color: #333; }
  a { color: inherit; text-decoration: none; }
}

[hidden] { display: none !important; }

/* ── Внутренние страницы: отступ под фиксированную шапку ───────────── */
.page-top { padding-top: 140px; }

/* ── Диалог покупки ────────────────────────────────────────────────── */
.purchase-dialog { width: min(480px, calc(100% - 32px)); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); border-radius: var(--radius-lg); padding: 2rem; }
.purchase-dialog::backdrop { background: rgba(5,6,10,0.72); backdrop-filter: blur(3px); }

/* ── Плашка о хранилище браузера ───────────────────────────────────── */
.storage-notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 200; width: min(720px, calc(100% - 32px)); display: flex; flex-wrap: wrap;
  align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.storage-notice p { margin: 0; flex: 1 1 320px; font-size: var(--fs-sm); }

/* ── Аккордеон вопросов ────────────────────────────────────────────── */
details.card { padding: 1.5rem 1.75rem; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; float: right; color: var(--accent2); font-weight: 400; }
details.card[open] summary::after { content: "−"; }
details.card p { margin-bottom: 0; }

/* ── Шаги услуги ───────────────────────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem;
  margin-bottom: 1.5rem; color: var(--muted); line-height: 1.75; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--accent2); }
.steps li strong { color: var(--text); }
