/* Spaceman краш-игра — кастомные стили */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* Дисплейный шрифт для заголовков */
.font-display { font-family: 'Russo One', 'Inter', sans-serif; letter-spacing: 0.02em; }

/* Hero блок */
.hero-bg {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,204,42,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(108,82,247,0.15) 0%, transparent 50%),
    linear-gradient(135deg, #1a1530 0%, #2b1d4d 50%, #1a1530 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 60% 70%, white, transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, white, transparent),
    radial-gradient(1px 1px at 40% 80%, white, transparent),
    radial-gradient(2px 2px at 90% 50%, white, transparent);
  background-size: 200px 200px, 150px 150px, 250px 250px, 100px 100px, 180px 180px;
  opacity: 0.4;
  animation: starsFloat 60s linear infinite;
}

@keyframes starsFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

/* Карточка контента */
.content-card {
  background: #FFFFFF;
  border: 1px solid #ECEAF3;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(23, 22, 29, 0.04);
}

/* Желтый акцент */
.accent-yellow { background: #FFCC2A; color: #17161D; }

/* CTA-кнопка */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #17161D;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 12px;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(23,22,29,0.18);
}
.btn-cta:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(23,22,29,0.25);
}
.btn-cta i { color: #FFCC2A; }

.btn-cta-yellow {
  background: #FFCC2A;
  color: #17161D;
}
.btn-cta-yellow:hover { background: #FFD955; }
.btn-cta-yellow i { color: #17161D; }

/* Таблица сравнения */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ECEAF3;
  font-size: 0.95rem;
}
.compare-table th {
  background: #F3F2F7;
  color: #17161D;
  font-weight: 700;
}
.compare-table tr:hover td { background: #FFFBEE; }

/* Pros / Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-box { background: #F0FDF4; border-left: 4px solid #16a34a; border-radius: 12px; padding: 1.25rem 1.5rem; }
.cons-box { background: #FEF2F2; border-left: 4px solid #dc2626; border-radius: 12px; padding: 1.25rem 1.5rem; }
.pros-box li, .cons-box li { padding: 6px 0; display: flex; gap: 10px; }
.pros-box li::before { content: '✓'; color: #16a34a; font-weight: 700; }
.cons-box li::before { content: '✕'; color: #dc2626; font-weight: 700; }

/* FAQ */
.faq-item { background: #FFFFFF; border: 1px solid #ECEAF3; border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 1rem 1.25rem; background: transparent; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #17161D; }
.faq-q:hover { background: #FFFBEE; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.25rem; color: #4a4a5a; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.25rem 1.25rem 1.25rem; }
.faq-icon { transition: transform 0.25s ease; }

/* Tag/Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #FFCC2A;
  color: #17161D;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Содержание (TOC) */
.toc-box {
  background: #F3F2F7;
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 4px solid #FFCC2A;
}
.toc-box ol { counter-reset: toc; }
.toc-box li { counter-increment: toc; padding: 5px 0; }
.toc-box li::marker { color: #FFCC2A; font-weight: 700; }
.toc-box a { color: #17161D; }
.toc-box a:hover { color: #6c52f7; text-decoration: underline; }

/* Промокод бейдж */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFCC2A 0%, #FFD955 100%);
  color: #17161D;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 2px dashed #17161D;
}
.promo-code {
  font-family: 'Russo One', monospace;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  background: #17161D;
  color: #FFCC2A;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Информационные блоки */
.info-box {
  background: linear-gradient(135deg, #FFFBEE 0%, #FFF6D6 100%);
  border-left: 4px solid #FFCC2A;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box i { color: #FFCC2A; }

/* Картинки */
.figure-block {
  margin: 2rem 0;
  text-align: center;
}
.figure-block img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(23,22,29,0.10);
}
.figure-block figcaption {
  margin-top: 0.75rem;
  color: #6b6b7a;
  font-size: 0.9rem;
  font-style: italic;
}

/* Шаги (как играть) */
.step-card {
  background: #FFFFFF;
  border: 1px solid #ECEAF3;
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.25s ease;
}
.step-card:hover {
  border-color: #FFCC2A;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(23,22,29,0.08);
}
.step-number {
  position: absolute;
  top: -16px;
  left: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFCC2A;
  color: #17161D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  border: 3px solid #FFFFFF;
}

/* Демо-плейсхолдер */
.demo-placeholder {
  background: linear-gradient(135deg, #1a1530 0%, #2b1d4d 50%, #1a1530 100%);
  border-radius: 20px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid #FFCC2A;
}
.demo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, white, transparent), radial-gradient(1px 1px at 70% 60%, white, transparent), radial-gradient(2px 2px at 50% 80%, white, transparent);
  background-size: 250px 250px;
  opacity: 0.4;
}

.float-anim { animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Анимация прозрачности */
.fade-in { animation: fadeIn 0.8s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Текст: типографика для длинных статей */
.prose-article h2 {
  font-family: 'Russo One', 'Inter', sans-serif;
  font-size: 1.85rem;
  color: #17161D;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
  scroll-margin-top: 100px;
}
.prose-article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #17161D;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.prose-article p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2f2e3a;
  margin-bottom: 1rem;
}
.prose-article ul, .prose-article ol {
  margin: 1rem 0 1.25rem 1.5rem;
  line-height: 1.75;
}
.prose-article ul li { list-style: disc; margin-bottom: 6px; color: #2f2e3a; }
.prose-article ol li { list-style: decimal; margin-bottom: 6px; color: #2f2e3a; }
.prose-article strong { color: #17161D; font-weight: 700; }
.prose-article a { color: #6c52f7; font-weight: 600; }
.prose-article a:hover { text-decoration: underline; }
.prose-article blockquote {
  border-left: 4px solid #FFCC2A;
  background: #FFFBEE;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-style: italic;
  color: #4a4a5a;
}

@media (max-width: 768px) {
  .prose-article h2 { font-size: 1.5rem; }
  .prose-article h3 { font-size: 1.2rem; }
  .prose-article p { font-size: 1rem; }
}

/* Картинки в тексте */
.inline-img-right {
  float: right;
  max-width: 320px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23,22,29,0.10);
}
.inline-img-left {
  float: left;
  max-width: 320px;
  margin: 0 1.5rem 1rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23,22,29,0.10);
}
@media (max-width: 768px) {
  .inline-img-right, .inline-img-left {
    float: none;
    max-width: 100%;
    margin: 1.25rem auto;
    display: block;
  }
}

/* Сетка преимуществ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: #FFFFFF;
  border: 1px solid #ECEAF3;
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: #FFCC2A;
  box-shadow: 0 10px 28px rgba(23,22,29,0.08);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFCC2A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #17161D;
  margin-bottom: 1rem;
}

/* Утилиты */
.container-narrow { max-width: 980px; margin-left: auto; margin-right: auto; }

/* Heatmap multipliers (декоративный нижний бар) */
.mult-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}
.mult-bar::-webkit-scrollbar { display: none; }
.mult-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}
.mult-yellow { background: #f59e0b; color: #17161D; }
.mult-purple { background: #7c3aed; }
.mult-blue { background: #2563eb; }
.mult-pink { background: #db2777; }
