/* ============================================
   CRYPTO CARD — ОСНОВНЫЕ СТИЛИ
   Редактируй как хочешь, всё понятно
   ============================================ */

/* --- Сброс и базовые стили --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* --- Контейнер --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================
   ХЕДЕР
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.logo span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

/* Навигация */
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  transition: color 0.2s;
}
.nav-link:hover { color: #1a1a1a; }

/* Правая часть хедера */
.header-right { display: flex; align-items: center; gap: 16px; }

/* Переключатель языка */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  transition: background 0.2s;
}
.lang-btn:hover { background: #f9f9f9; }
.lang-btn svg { transition: transform 0.2s; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 4px 0;
  min-width: 100px;
  z-index: 50;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  transition: background 0.15s;
}
.lang-option:hover { background: #f9f9f9; }
.lang-option.active { background: rgba(20,0,255,0.05); color: #1400FF; }

/* CTA кнопки */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #1400FF;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s;
}
.btn-primary:hover { background: #1000CC; }

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid #1400FF;
  color: #1400FF;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s;
}
.btn-outline-blue:hover { background: rgba(20,0,255,0.05); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* Бургер с анимацией */
.burger { display: none; padding: 8px; position: relative; width: 40px; height: 40px; }
.burger svg { width: 24px; height: 24px; position: absolute; top: 8px; left: 8px; transition: opacity 0.25s, transform 0.25s; }
.burger .close-icon { opacity: 0; transform: rotate(-90deg); }
.burger .burger-icon { opacity: 1; transform: rotate(0); }
.burger.active .close-icon { opacity: 1; transform: rotate(0); }
.burger.active .burger-icon { opacity: 0; transform: rotate(90deg); }

/* Мобильное меню */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px;
  /* Анимация */
  max-height: 0;
  overflow: visible;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  padding-top: 0;
  padding-bottom: 0;
}
.mobile-menu.open {
  display: block;
  max-height: 600px;
  opacity: 1;
  padding: 16px 24px;
  overflow: visible;
}
.mobile-menu a, .mobile-menu button.nav-link {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  width: 100%;
  text-align: left;
}
.mobile-menu .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }




/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 120px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
}
.hero h1 .accent { color: #1400FF; }
.hero p {
  margin-top: 24px;
  color: #777;
  font-size: 17px;
  max-width: 440px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  max-width: 480px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}


/* ============================================
   КАК ЭТО РАБОТАЕТ
   ============================================ */
.how-section {
  padding: 80px 0;
  background: #fafafa;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: #eee;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-desc {
  color: #777;
  max-width: 520px;
  margin-bottom: 48px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.3s;
}
.step-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.step-icon {
  width: 40px; height: 40px;
  background: rgba(20,0,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #1400FF;
}
.step-num { color: #1400FF; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.step-card h3 { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.step-card p { color: #777; font-size: 14px; line-height: 1.6; }

/* Карточка «Готово» */
.ready-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ready-card h3 { font-size: 20px; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}


/* ============================================
   СТАТИСТИКА
   ============================================ */
.stats {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
}
.stat-value.accent { color: #1400FF; }
.stat-suffix {
  font-size: 14px;
  font-weight: 500;
}
.stat-suffix.accent { color: #1400FF; }
.stars { display: flex; justify-content: center; gap: 2px; }
.stars svg { width: 20px; height: 20px; fill: #1a1a1a; }


/* ============================================
   СИНИЙ БАННЕР
   ============================================ */
.blue-banner {
  padding: 80px 0;
  background: #1400FF;
  color: #fff;
  overflow: hidden;
  margin-bottom: 48px;
}
.blue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.blue-banner h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
}
.blue-banner p {
  margin-top: 24px;
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 440px;
  line-height: 1.7;
}
.blue-banner button {
  margin-top: 32px;
}
  display: flex;
  align-items: center;
  justify-content: center;
}
.blue-deco-text {
  font-size: 10rem;
  font-weight: 900;
  letter-spacing: -6px;
  background: linear-gradient(135deg, #00C9A7, #4DE8C8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  position: relative;
}


/* ============================================
   ФИЧИ (чередующиеся секции)
   ============================================ */
.feature-section { padding: 64px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-grid.reverse .feature-text { order: 2; }
.feature-grid.reverse .feature-illust { order: 1; }
.feature-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.feature-text h2 .accent { color: #1400FF; font-style: italic; }
.feature-text p {
  margin-top: 16px;
  color: #777;
  font-size: 17px;
  max-width: 440px;
  line-height: 1.7;
}

/* Иллюстрации (телефон) */
.phone-frame {
  background: #111;
  border-radius: 28px;
  padding: 16px;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.phone-inner {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 16px;
}
.phone-inner .wallet-label { color: #fff; font-size: 13px; font-weight: 500; }
.phone-inner .wallet-balance { color: #fff; font-size: 24px; font-weight: 700; margin: 8px 0 4px; }
.phone-inner .wallet-change { color: #34D399; font-size: 12px; margin-bottom: 16px; }
.coin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.coin-row .coin-left { display: flex; align-items: center; gap: 8px; }
.coin-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
}
.coin-name { color: #fff; font-size: 13px; }
.coin-amount { color: #fff; font-size: 13px; text-align: right; }
.coin-fiat { color: #777; font-size: 11px; text-align: right; }

/* Transaction list */
.tx-card {
  background: #222;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tx-left { display: flex; align-items: center; gap: 8px; }
.tx-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #333;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
}
.tx-name { color: #fff; font-size: 13px; font-weight: 500; }
.tx-time { color: #666; font-size: 11px; }
.tx-amount { color: #fff; font-size: 13px; text-align: right; }
.tx-fiat { color: #666; font-size: 11px; text-align: right; }

/* Мини карта внутри телефона */
.mini-card {
  background: linear-gradient(135deg, #1400FF, #4433FF);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.mini-card-top { display: flex; justify-content: space-between; margin-bottom: 24px; }
.mini-card-top span { color: #fff; font-size: 14px; font-weight: 700; }
.mini-card-num { color: rgba(255,255,255,0.5); font-size: 12px; font-family: monospace; }


/* ============================================
   ПРЕИМУЩЕСТВА
   ============================================ */
.advantages { padding: 80px 0; }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.adv-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.adv-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.adv-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.adv-icon svg { width: 28px; height: 28px; color: #fff; }
.adv-card h3 { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.adv-card p { color: #777; font-size: 14px; line-height: 1.6; }

/* Цвета иконок */
.adv-icon.yellow { background: linear-gradient(135deg, #F59E0B, #F97316); }
.adv-icon.blue { background: linear-gradient(135deg, #1400FF, #4433FF); }
.adv-icon.green { background: linear-gradient(135deg, #00C9A7, #34D399); }
.adv-icon.lime { background: linear-gradient(135deg, #22C55E, #84CC16); }
.adv-icon.purple { background: linear-gradient(135deg, #A855F7, #EC4899); }
.adv-icon.cyan { background: linear-gradient(135deg, #3B82F6, #06B6D4); }


/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 80px 0;
  background: #fafafa;
}
.faq-list { max-width: 800px; }
.faq-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item.open { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  text-align: left;
}
.faq-question svg { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: #777;
  font-size: 14px;
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
  opacity: 1;
}


/* ============================================
   CTA БАННЕР
   ============================================ */
.cta-section { padding: 80px 0; }
.cta-box {
  background: #1400FF;
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.cta-box h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.cta-box p {
  margin-top: 16px;
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 440px;
}
.cta-deco {
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  transform: translate(25%, -50%);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid #f0f0f0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 28px; height: 28px; border-radius: 8px; }
.footer-logo span { font-weight: 700; font-size: 14px; }
.footer-copy { color: #aaa; font-size: 13px; }


/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.modal-back {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.modal-back:hover { background: #f5f5f5; }
.modal-header h2 { font-size: 22px; font-weight: 700; }

.modal-steps { display: flex; gap: 12px; margin-bottom: 28px; }
.modal-step {
  flex: 1;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.modal-step.active {
  border-color: rgba(20,0,255,0.25);
  background: rgba(20,0,255,0.04);
  color: #1a1a1a;
}
.modal-step .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ddd;
}
.modal-step.active .dot { background: #1400FF; }

.modal-desc { color: #777; font-size: 14px; margin-bottom: 20px; }

.tron-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.tron-btn:hover { border-color: #ddd; background: #fafafa; }
.tron-logo {
  width: 40px; height: 40px;
  background: #C23631;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tron-info { flex: 1; text-align: left; }
.tron-info strong { display: block; font-size: 15px; }
.tron-info span { color: #aaa; font-size: 13px; }
.tron-arrow { color: #ccc; }

.modal-footer { color: #aaa; font-size: 12px; margin-top: 24px; }


/* ============================================
   СКРОЛЛ-АНИМАЦИИ
   ============================================ */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }


/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 900px) {
  .nav, .header-right { display: none; }
  .burger { display: block; }
  .mobile-lang { display: flex; }

  .hero-grid,
  .blue-grid,
  .feature-grid,
  .cta-box { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.4rem; }
  .blue-banner h2 { font-size: 2rem; }
  .feature-text h2 { font-size: 2rem; }
  .cta-box h2 { font-size: 2rem; }
  .cta-box { padding: 32px; }

  .how-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .adv-grid { grid-template-columns: 1fr; }

  .feature-grid.reverse .feature-text { order: 1; }
  .feature-grid.reverse .feature-illust { order: 2; }

  .blue-deco { display: none; }
  .hero-image img { max-width: 320px; margin: 0 auto; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
