/* ===== Переменные ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141e;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --accent: #6c5ce7;
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #00b894);
  --border-color: #2a2a3a;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  /* для кнопок и бейджей с белым текстом: тёмный конец градиента, контраст ≈4.6:1 */
  --accent-gradient-btn: linear-gradient(135deg, #6c5ce7, #00846a);
  --green: #238636;
  --green-hover: #2ea043;
  /* fluid typography: только крупные заголовки, мелкий текст остаётся фиксированным */
  --fs-hero-title: clamp(2.5rem, 6vw, 4rem);
  --fs-section-title: clamp(2rem, 4vw, 2.8rem);
  --fs-bot-card-title: clamp(1.2rem, 2vw, 1.5rem);
  --fs-stat-number: clamp(2rem, 5vw, 2.5rem);
}

/* ===== Сброс и база ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* якоря не прячутся под закреплённой шапкой */
section[id] {
  scroll-margin-top: 88px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient-btn);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-md {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.2rem;
}

/* ===== Хедер ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #6c5ce7;
}

.dot {
  color: #00b894;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav a.active {
  color: var(--text-primary);
}

.nav a:hover {
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav a {
  white-space: nowrap;
}

.header-cta {
  padding: 8px 24px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--fs-hero-title);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

.phone-frame {
  background: #17212b;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 360px;
  margin: 0 auto;
}

.phone-header {
  background: #242f3d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.phone-header-bot {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.phone-chat {
  padding: 16px;
  min-height: 380px;
  background: #0e1621;
  position: relative;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-track {
  position: relative;
  min-height: 280px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
}

.carousel-dot:hover {
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
}

.alert-bubble {
  background: #182533;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  position: relative;
}

.alert-bubble .alert-icon {
  font-size: 1.2rem;
  margin-right: 6px;
}

.alert-bubble .alert-pair {
  font-weight: 700;
  color: #64b5f6;
}

.alert-bubble .alert-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-bubble .alert-label {
  color: var(--text-secondary);
}

.alert-bubble .alert-exchange {
  color: #64b5f6;
  font-weight: 600;
}

.alert-bubble .alert-time {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.alert-pd { border-left: 3px solid #ff7a45; }
.alert-oi { border-left: 3px solid #6c5ce7; }
.alert-price { border-left: 3px solid #388bfd; }
.alert-close { border-left: 3px solid #00b894; }

/* ===== Секция ботов ===== */
.bots-section {
  background: var(--bg-secondary);
}

/* на широких экранах даём пяти карточкам больше места, чтобы примеры алертов читались */
.bots-section .container {
  max-width: 1400px;
}

.bots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2rem;
}

/* grid-элемент не должен раздувать колонку до min-content ширины картинки */
.card.bot-card {
  min-width: 0;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .bots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .bots-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.bot-icon {
  display: none;
}

.bot-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.bot-icon-svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
}

.bot-alert-figure {
  margin: 0 0 1rem 0;
  max-width: 100%;
}

.bot-alert-figure img,
.how-step-figure img,
.screener-figure img,
.cabinet-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: block;
}

.bot-alert-figure figcaption,
.how-step-figure figcaption,
.screener-figure figcaption,
.cabinet-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

.shot--placeholder,
img.shot--placeholder {
  display: block;
  width: 100%;
  min-height: 180px;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  line-height: 180px;
}

.screener-figure .shot--placeholder,
.cabinet-figure .shot--placeholder {
  line-height: 1.4;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.cabinet-figure {
  max-width: 100%;
}

.screener-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.5rem;
}

.screener-shots .screener-figure {
  margin-top: 0;
}

.screener-figure {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.screener-figure-side {
  max-width: 520px;
  margin: 0 auto;
}

.shot-zoom {
  display: block;
}

.shot-zoom img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-zoom:hover img {
  transform: scale(1.01);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Пример алерта в карточке бота: контрастная рамка и крупный читаемый размер */
.bot-alert-figure .shot-zoom {
  display: block;
  position: relative;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 16px;
  padding: 8px;
  background: #1a1f2e;
  border: 2px solid #2d3748;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bot-alert-figure .shot-zoom img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.bot-alert-figure .shot-zoom:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  cursor: pointer;
  z-index: 2;
}

.bot-alert-figure .shot-zoom:hover img {
  transform: none;
  box-shadow: none;
}

/* на планшетах и в трёхколоночной сетке не сужаем скриншоты ради max-width */
@media (min-width: 641px) and (max-width: 1399px) {
  .bot-alert-figure .shot-zoom {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .bot-alert-figure .shot-zoom {
    max-width: 100%;
    border-radius: 8px;
  }
}

.bot-card h3 {
  font-size: var(--fs-bot-card-title);
}

.bot-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bot-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.bot-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.bot-features li::before {
  content: '✓ ';
  color: #00b894;
  font-weight: 700;
}

.bot-link {
  align-self: center;
  width: 100%;
}

/* ===== Преимущества ===== */
.advantages-section {
  background: var(--bg-primary);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, border-color 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.advantage-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.advantage-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Секция цен ===== */
.pricing-section {
  background: var(--bg-primary);
}

.pricing-plans {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 320px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: scale(1.02);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-gradient-btn);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  align-self: center;  /* центрируем по горизонтали */
  flex-shrink: 0;      /* запрещаем сжатие */
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-price [data-price] {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓ ';
  color: #00b894;
  font-weight: 700;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.5rem;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  padding: 0;
}

.faq-answer.open {
  /* max-height выставляется из main.js по scrollHeight — длинные ответы не обрезаются */
  padding: 0.5rem 0 1rem 0;
}

/* ===== CTA ===== */
.cta-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.cta-wrapper {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 40px;
  padding: 4rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Футер ===== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ===== Адаптивность ===== */
/* на средних ширинах меню уходит в бургер, чтобы пункты не переносились и не вылезали */
@media (max-width: 1120px) {
  .header-inner .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    padding: 1.5rem 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .header-inner .nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-cabinet {
    margin-left: auto;
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .header-inner .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    padding: 1.5rem 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .header-inner .nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .cta-title {
    font-size: 2rem;
  }

  .pricing-plans {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 380px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  /* на узких экранах шапка не должна вылезать за вьюпорт и давать горизонтальный скролл */
  .header-inner {
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.55rem;
  }

  .header-cabinet {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ===== Screener CTA ===== */
.nav-screener {
  color: #00b894;
  font-weight: 600;
  border: 1px solid rgba(0, 184, 148, 0.45);
  border-radius: 50px;
  padding: 2px 14px;
}
.nav-screener:hover {
  border-color: #00b894;
  color: #00b894 !important;
}
.screener-section {
  background: var(--bg-secondary);
}
.screener-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.screener-banner-title {
  font-size: 2rem;
  font-weight: 700;
}
.screener-banner-text {
  color: var(--text-secondary);
  max-width: 720px;
}
.screener-banner-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.screener-banner-features span::before {
  content: '✓ ';
  color: #00b894;
  font-weight: 700;
}

.how-section {
  background: var(--bg-primary);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

.how-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.how-step:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient-btn);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.how-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.how-step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.how-step-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.how-badge {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.how-step-figure {
  margin: 1rem 0 0 0;
}

.how-step-figure img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.how-step-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.shot--placeholder,
img.shot--placeholder {
  display: block;
  min-height: 180px;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  line-height: 180px;
  padding: 1rem;
  box-sizing: border-box;
}

.shot--placeholder figcaption {
  margin-top: 0.75rem;
  line-height: 1.4;
}

.screener-figure {
  margin: 1.5rem 0 0 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.screener-figure img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.screener-figure-link {
  display: block;
  transition: transform 0.2s;
}

.screener-figure-link:hover {
  transform: scale(1.01);
}

.screener-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.screener-figure-side {
  max-width: 520px;
  margin: 0 auto;
}

.cabinet-figure {
  margin: 0;
  max-width: 100%;
}

.cabinet-figure img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.cabinet-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (min-width: 968px) {
  .screener-banner {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: flex-start;
    gap: 2rem;
  }
  .screener-banner > div:first-child {
    flex: 1 1 600px;
  }
  .screener-shots {
    flex: 1 0 100%;
    order: 2;
  }
  .screener-banner-features {
    flex: 1 0 100%;
    order: 3;
    justify-content: center;
  }
  .screener-banner > .btn {
    order: 1;
  }
}

@media (max-width: 768px) {
  .screener-banner { padding: 1.75rem; }
  .screener-banner-title { font-size: 1.5rem; }
  .how-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Payment modal ===== */
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.pay-modal-overlay[hidden] { display: none; }
.pay-modal {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
}
.pay-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
}
.pay-modal-close:hover { color: var(--text-primary); }
.pay-modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.pay-modal-subtitle { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.25rem; }
.pay-methods { display: flex; flex-direction: column; gap: 0.6rem; }
.pay-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.pay-method:hover { border-color: var(--accent); transform: translateY(-1px); }
.pay-method.active { border-color: #00b894; box-shadow: 0 0 0 1px #00b894 inset; }
.pay-method-name { font-weight: 600; color: var(--text-primary); }
.pay-method-addr { font-size: 0.8rem; color: var(--text-secondary); word-break: break-all; text-align: right; }
.pay-details { margin-top: 1.25rem; border-top: 1px solid var(--border-color); padding-top: 1.25rem; }
.pay-details[hidden] { display: none; }
.pay-details-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.pay-details-label { color: var(--text-secondary); font-size: 0.9rem; min-width: 90px; }
.pay-details-value { font-weight: 600; }
.pay-details-addr {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  word-break: break-all;
  flex: 1;
}
.pay-copy {
  background: var(--bg-primary);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.pay-copy:hover { background: var(--accent); color: #fff; }
.pay-steps {
  margin: 0.9rem 0 1.1rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pay-steps b { color: var(--text-primary); }
.pay-tg-btn { width: 100%; justify-content: center; }
.pay-template-btn { width: 100%; margin-top: 0.6rem; padding: 0.5rem; }
.pay-note { margin-top: 0.7rem; font-size: 0.8rem; color: var(--text-secondary); text-align: center; }

/* ===== Дополнения: единый стиль, кабинет, вход, анимации ===== */
.btn-cabinet {
  background: var(--green);
  color: #fff;
  border-radius: 50px;
  white-space: nowrap;
}
.btn-cabinet:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

/* третья кнопка hero — текстовая ссылка, чтобы ряд не ломался 2+1 */
.btn-link {
  background: none;
  color: var(--text-secondary);
  padding-left: 12px;
  padding-right: 12px;
}
.btn-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.2s;
}
.btn-link:hover {
  color: var(--text-primary);
}
.btn-link:hover::after {
  transform: translateX(4px);
}

/* вход через Telegram — в hero, а не отдельной строкой шапки */
.hero-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: -1rem 0 2.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.hero-login[hidden] {
  display: none;
}

/* блок «Личный кабинет» (раньше был на inline-стилях и других цветах) */
.cabinet-section {
  background: var(--bg-primary);
  text-align: center;
}
.cabinet-section .section-subtitle {
  max-width: 760px;
}
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.cabinet-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Блок «Цифры говорят сами за себя» ===== */
.stats-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.18);
}

.stat-number {
  display: block;
  width: max-content; /* градиент не обрезается на длинных числах вроде «28 000+» */
  margin: 0 auto 12px;
  font-size: var(--fs-stat-number);
  font-weight: 700;
  white-space: nowrap;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-card { padding: 24px 16px; }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== Sticky CTA на мобильных ===== */
.sticky-cta {
  display: none; /* по умолчанию скрыт */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 900; /* ниже модального окна оплаты (1000) */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.sticky-cta .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background: var(--accent-gradient-btn);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.sticky-cta .btn-primary:hover {
  opacity: 0.9;
  transform: none;
  box-shadow: none;
}

/* Показывать только на мобильных и после скролла */
@media (max-width: 768px) {
  .sticky-cta.visible {
    display: block;
  }

  /* отступ для контента, чтобы sticky не перекрывал footer */
  body {
    padding-bottom: 80px;
  }
}

/* ===== Появление при прокрутке ===== */
/* Класс .reveal снимается после показа, поэтому transition-delay не тормозит :hover карточек */
.bot-card,
.advantage-item,
.pricing-card,
.screener-banner {
  transition: opacity 0.6s ease, transform 0.35s ease, box-shadow 0.3s, border-color 0.3s;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* каскадные задержки для дочерних элементов */
.js .reveal-stagger > .reveal:nth-child(1) { --reveal-delay: 0.1s; }
.js .reveal-stagger > .reveal:nth-child(2) { --reveal-delay: 0.2s; }
.js .reveal-stagger > .reveal:nth-child(3) { --reveal-delay: 0.3s; }
.js .reveal-stagger > .reveal:nth-child(4) { --reveal-delay: 0.4s; }
.js .reveal-stagger > .reveal:nth-child(5) { --reveal-delay: 0.5s; }

:focus-visible {
  outline: 2px solid #00b894;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
