/* Стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(to bottom right, #0f172a, #7e22ce, #0f172a);
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
  position: relative;
}

/* Языковой переключатель */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: #8b5cf6;
  transform: translateY(-2px);
}

.lang-btn:hover:not(.active) {
  background: rgba(255,255,255,0.2);
}

/* Фоновый SVG-график */
.crypto-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* Основной контент поверх фона */
.content {
  position: relative;
  z-index: 10;
}

/* Заголовок */
.header {
  text-align: center;
  padding: 4rem 1rem;
}

.main-title {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sub-title {
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  font-weight: 300;
  color: #bfdbfe;
  margin-bottom: 2rem;
}

.underline {
  width: 6rem;
  height: 0.25rem;
  background: linear-gradient(to right, #60a5fa, #8b5cf6);
  margin: 0 auto;
  border-radius: 9999px;
}

/* Сетка платформ */
.platforms-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.platform-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.platform-card:hover {
  transform: translateY(0) scale(1.05) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.platform-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(to bottom right, #2563eb, #7c3aed);
  transform: translateY(30px) scale(1.05) !important;
  z-index: 20;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.platform-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .platform-content {
    flex-direction: row;
    align-items: center;
  }
}

.logo-container {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-card.featured .logo-container {
  width: 6rem;
  height: 6rem;
}

.platform-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.platform-card.featured .platform-logo {
  width: 5rem;
  height: 5rem;
}

/* 🔥 ВАЖНО: Заголовок внутри ссылки теперь БЕЛЫЙ, как и должен быть */
.platform-card a h3.platform-name,
.platform-card h3.platform-name {
  color: white !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.platform-card.featured h3.platform-name {
  font-size: 1.875rem;
}

.advantages-title {
  color: #bfdbfe;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.advantages-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.advantage-bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.25rem;
  background: #c4b5fd;
}

.platform-card.featured .advantage-bullet {
  background: #93c5fd;
}

.advantage-text {
  color: rgba(255, 255, 255, 0.8);
}

.platform-card.featured .advantage-text {
  color: rgba(255, 255, 255, 0.9);
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.star {
  width: 1.25rem;
  height: 1.25rem;
  color: #fbbf24;
}

.star.inactive {
  color: #4b5563;
}

.rating-text {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.platform-card.featured .rating-text {
  color: white;
  font-size: 1.125rem;
}

.users-text {
  color: rgba(255, 255, 255, 0.8);
}

.platform-card.featured .users-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.users-text strong {
  font-weight: 600;
}

.cta-button {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: white;
}

.platform-card.featured .cta-button {
  background: white;
  color: #1e40af;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: scale(1.05);
}

.platform-card.featured .cta-button:hover {
  background: #eff6ff;
}

/* Бейдж "№1" */
.badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  background: #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  font-weight: 700;
  color: #1e3a8a;
  font-size: 0.875rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Футер */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
  .platform-card.featured {
    transform: translateY(30px) scale(1.05) !important;
  }
}