:root {
  --primary: #ff4757;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --gray: #6c757d;
  --bg-color: #0f0f0f;
  --card-bg: rgba(26, 26, 26, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-color) url('../images/background.png') no-repeat center/cover fixed;
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b81;
}

/* Шапка */
.header {
  background: rgba(26, 26, 26, 0.9);
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.logo img {
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links .active {
  color: var(--primary);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #ff6b81;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Основной контент */
.main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
  width: 100%;
}

.page-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: fadeIn 1s ease;
}

/* Шаги */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.step h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.step p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.step-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.step-buttons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(51, 51, 51, 0.7);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.step-buttons a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.step-buttons a img {
  width: 20px;
  height: 20px;
}

.step-image {
  width: 100%;
  border-radius: 5px;
  margin: 1rem 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.character-image {
  display: block;
  width: 150px;
  height: auto;
  margin: 1rem auto;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.character-image:hover {
  transform: scale(1.05);
}

.join-btn {
  display: block;
  width: 250px;
  margin: 2rem auto;
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(255, 71, 87, 0.3);
  border: none;
  cursor: pointer;
}

.join-btn:hover {
  background: #ff6b81;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(255, 71, 87, 0.4);
}

/* Футер (исправленная версия) */
.footer {
  background: rgba(26, 26, 26, 0.9);
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.footer-link {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 0.3rem 0;
}

.footer-link:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.payment-methods img {
  width: 40px;
  height: 25px;
  object-fit: contain;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }

/* Адаптация под мобильные устройства */
@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    margin-top: 1rem;
  }

  .btn {
    margin-top: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .step {
    margin-bottom: 1rem;
  }

  .join-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .step-buttons {
    flex-direction: column;
  }

  .step-buttons a {
    justify-content: center;
  }
}